Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

AESMBS.Decrypt(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 9.4 Yes Yes Yes Yes No
Function: Decryptes the first 16 bytes in the input memoryblock at the given offset and stores the result in the output memoryblock at the given offset.
Notes:
If odata is nil, idata is used for output.
This is ECB mode.

Feedback, Comments & Corrections

AESMBS.DecryptCBC(idata as memoryblock, LengthBytes as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 9.4 Yes Yes Yes Yes No
Function: Decryptes the 16 byte data blocks within LengthBytes bytes in the data.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.

Feedback, Comments & Corrections

AESMBS.DecryptCFB1(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Decryptes the data in CFB1 mode.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.
IVectorOffset safes the position in the IVector for the next call to this method.
iOffset: offset in idata.
oOffset: offset in odata.
LengthBytes: Length of data in idata and odata.

See also:

Feedback, Comments & Corrections

AESMBS.DecryptCFB1(idata as string, IVector as memoryblock=nil) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Decryptes the data in CFB1 mode.
Example:
dim a as new AESMBS

if a.SetKey("Hello World") then
dim input as string = "Hello World"
dim encrypted as string = a.EncryptCFB1(input)

if a.SetKey("Hello World") then
dim decrypted as string = a.DecryptCFB1(encrypted)

decrypted = DefineEncoding(decrypted, Encodings.ASCII)

if decrypted = input then
MsgBox "OK"
end if
end if
end if
Notes: If IVector is nil, a vector filled with zeros is used.

See also:

Feedback, Comments & Corrections

AESMBS.DecryptCFB128(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Decryptes the data in CFB128 mode.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.
IVectorOffset safes the position in the IVector for the next call to this method.
iOffset: offset in idata.
oOffset: offset in odata.
LengthBytes: Length of data in idata and odata.

Older plugin version had problems that they didn't use key at all. So if you want to read old data encrypted with them, you need simply to decrypt without setting key.

See also:

Feedback, Comments & Corrections

AESMBS.DecryptCFB128(idata as string, IVector as memoryblock=nil) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Decryptes the data in CFB128 mode.
Example:
dim a as new AESMBS

if a.SetKey("Hello World") then
dim input as string = "Hello World"
dim encrypted as string = a.EncryptCFB128(input)

if a.SetKey("Hello World") then
dim decrypted as string = a.DecryptCFB128(encrypted)

decrypted = DefineEncoding(decrypted, Encodings.ASCII)

if decrypted = input then
MsgBox "OK"
end if
end if
end if
Notes:
If IVector is nil, a vector filled with zeros is used.

Older plugin version had problems that they didn't use key at all. So if you want to read old data encrypted with them, you need simply to decrypt without setting key.

See also:

Feedback, Comments & Corrections

AESMBS.DecryptCFB8(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Decryptes the data in CFB8 mode.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.
IVectorOffset safes the position in the IVector for the next call to this method.
iOffset: offset in idata.
oOffset: offset in odata.
LengthBytes: Length of data in idata and odata.

See also:

Feedback, Comments & Corrections

AESMBS.DecryptCFB8(idata as string, IVector as memoryblock=nil) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Decryptes the data in CFB8 mode.
Example:
dim a as new AESMBS

if a.SetKey("Hello World") then
dim input as string = "Hello World"
dim encrypted as string = a.EncryptCFB8(input)

if a.SetKey("Hello World") then
dim decrypted as string = a.DecryptCFB8(encrypted)

decrypted = DefineEncoding(decrypted, Encodings.ASCII)

if decrypted = input then
MsgBox "OK"
end if
end if
end if
Notes: If IVector is nil, a vector filled with zeros is used.

See also:

Feedback, Comments & Corrections

AESMBS.DecryptECB(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Decryptes the 16 byte data block in the data.
Notes: If odata is nil, idata is used for output.

Feedback, Comments & Corrections

AESMBS.Encrypt(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 9.4 Yes Yes Yes Yes No
Function: Encryptes the first 16 bytes in the input memoryblock at the given offset and stores the result in the output memoryblock at the given offset.
Notes:
If odata is nil, idata is used for output.
This is ECB mode.

Feedback, Comments & Corrections

AESMBS.EncryptCBC(idata as memoryblock, LengthBytes as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 9.4 Yes Yes Yes Yes No
Function: Encryptes the 16 byte data blocks within LengthBytes bytes in the data.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.

Feedback, Comments & Corrections

AESMBS.EncryptCFB1(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Encryptes the data in CFB1 mode.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.
IVectorOffset safes the position in the IVector for the next call to this method.
iOffset: offset in idata.
oOffset: offset in odata.
LengthBytes: Length of data in idata and odata.

See also:

Feedback, Comments & Corrections

AESMBS.EncryptCFB1(idata as string, IVector as memoryblock=nil) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Encryptes the data in CFB1 mode.
Example:
dim a as new AESMBS

if a.SetKey("Hello World") then
dim input as string = "Hello World"
dim encrypted as string = a.EncryptCFB1(input)

if a.SetKey("Hello World") then
dim decrypted as string = a.DecryptCFB1(encrypted)

decrypted = DefineEncoding(decrypted, Encodings.ASCII)

if decrypted = input then
MsgBox "OK"
end if
end if
end if
Notes:
If IVector is nil, a vector filled with zeros is used.

Returned string does not contain text, but binary data.
Please do not store in text fields in database without using EncodeHex or EncodeBase64 to make it a text string.

See also:

Feedback, Comments & Corrections

AESMBS.EncryptCFB128(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Encryptes the data in CFB128 mode.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.
IVectorOffset safes the position in the IVector for the next call to this method.
iOffset: offset in idata.
oOffset: offset in odata.
LengthBytes: Length of data in idata and odata.

See also:

Feedback, Comments & Corrections

AESMBS.EncryptCFB128(idata as string, IVector as memoryblock=nil) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Encryptes the data in CFB128 mode.
Example:
dim a as new AESMBS

if a.SetKey("Hello World") then
dim input as string = "Hello World"
dim encrypted as string = a.EncryptCFB128(input)

if a.SetKey("Hello World") then
dim decrypted as string = a.DecryptCFB128(encrypted)

decrypted = DefineEncoding(decrypted, Encodings.ASCII)

if decrypted = input then
MsgBox "OK"
end if
end if
end if
Notes:
If IVector is nil, a vector filled with zeros is used.

Returned string does not contain text, but binary data.
Please do not store in text fields in database without using EncodeHex or EncodeBase64 to make it a text string.

See also:

Feedback, Comments & Corrections

AESMBS.EncryptCFB8(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Encryptes the data in CFB8 mode.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.
IVectorOffset safes the position in the IVector for the next call to this method.
iOffset: offset in idata.
oOffset: offset in odata.
LengthBytes: Length of data in idata and odata.

See also:

Feedback, Comments & Corrections

AESMBS.EncryptCFB8(idata as string, IVector as memoryblock=nil) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Encryptes the data in CFB8 mode.
Example:
dim a as new AESMBS

if a.SetKey("Hello World") then
dim input as string = "Hello World"
dim encrypted as string = a.EncryptCFB8(input)

if a.SetKey("Hello World") then
dim decrypted as string = a.DecryptCFB8(encrypted)

decrypted = DefineEncoding(decrypted, Encodings.ASCII)

if decrypted = input then
MsgBox "OK"
end if
end if
end if
Notes:
If IVector is nil, a vector filled with zeros is used.

Returned string does not contain text, but binary data.
Please do not store in text fields in database without using EncodeHex or EncodeBase64 to make it a text string.

See also:

Feedback, Comments & Corrections

AESMBS.EncryptECB(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Encryptes the 16 byte data block in the data.
Notes: If odata is nil, idata is used for output.

Feedback, Comments & Corrections

AESMBS.EncryptOFB(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 13.4 Yes Yes Yes Yes No
Function: Encryptes the data in OFB mode.
Notes:
If odata is nil, idata is used for output.
If IVector is nil, a vector filled with zeros is used.
IVectorOffset safes the position in the IVector for the next call to this method.
iOffset: offset in idata.
oOffset: offset in odata.
LengthBytes: Length of data in idata and odata.

Feedback, Comments & Corrections

AESMBS.SetKey(key as memoryblock, nBits as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 4.1 Yes Yes Yes Yes No
Function: Sets the key.
Notes:
possible values for the bitcount:
128key is 16 bytes long
192key is 24 bytes long
256key is 32 bytes long

Plugin version 13.4 and newer pads this memoryblock with 00 bytes if string is shorter.

See also:

Feedback, Comments & Corrections

AESMBS.SetKey(key as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Encryption and Hash MBS Encryption Plugin 9.4 Yes Yes Yes Yes No
Function: Sets the key.
Example:
dim x,u,s as string
dim iv as MemoryBlock

s="Hello World"

// encrypt
s=ConvertEncoding(s,encodings.UTF8)

dim a as new AESMBS

call a.SetKey("1234567890123456")

iv=NewMemoryBlock(16)
x=a.EncryptCFB128(s,iv)

MsgBox x

// decrypt

iv=NewMemoryBlock(16)
u=a.DecryptCFB128(x,iv)

u=DefineEncoding(u,encodings.UTF8)

MsgBox u
Notes:
Please use 16, 24 or 32 byte long key strings.
Plugin version 13.4 and newer pads this string with 00 bytes if string is shorter.

See also:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Encryption Plugin.

The biggest plugin in space...




Links
MBS FileMaker Plugins