Platforms to show: All Mac Windows Linux Cross-Platform
Back to BlowfishMBS class.
BlowfishMBS.Decrypt(iodata as memoryblock)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
input and output are in host endian format.
memoryblock must be not nil and has a size of 8 bytes.
See also:
BlowfishMBS.DecryptCBC(data as string, byref temp as memoryblock) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
data: data to be decrypted
temp: memoryblock for temporary data. Is created when called with nil value. Pass on following calls to allow data to be shared between function calls.
Returns "" on invalid input.
You can create yourself an eight byte memoryblock with a starting value you want.
Be aware that this CBC method works with data in 8 byte blocks, so you need to unpad data if needed.
See also:
BlowfishMBS.DecryptCBC(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
idata: memoryblock for input data, 8 bytes in size and not nil.
odata: memoryblock for output data, 8 bytes in size and not nil.
offset: offset in input and output memoryblocks
length: length of data in memoryblock in bytes. Multiply of 8.
ivec: memoryblock for temporary data, 8 bytes in size and not nil.
ivec should be a memoryblock of 8 bytes size which you create before calling the function for the first time. On the next time you passed the same block, so the function can store data inside this memoryblock between function calls.
Be aware that this CBC method works with data in 8 byte blocks, so you need to unpad data if needed.
See also:
BlowfishMBS.DecryptCFB64(data as string, byref temp as memoryblock) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
data: data to be decrypted
temp: memoryblock for temporary data. Is created when called with nil value. Pass on following calls to allow data to be shared between function calls.
Returns "" on invalid input.
You can create yourself a twelve byte memoryblock with a starting value you want. First four bytes are position and next 8 bytes the current vector.
See also:
BlowfishMBS.DecryptCFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
idata: memoryblock for input data, 8 bytes in size and not nil.
odata: memoryblock for output data, 8 bytes in size and not nil.
offset: offset in input and output memoryblocks
length: length of data in memoryblock in bytes. Multiply of 8.
ivec: memoryblock for temporary data, 8 bytes in size and not nil.
num: current position in ivec. Pass 0 as start value and pass the value you get back to the next function call.
Returns "" on invalid input.
You can create yourself a twelve byte memoryblock with a starting value you want. First four bytes are position and next 8 bytes the current vector.
See also:
BlowfishMBS.DecryptECB(data as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function decrypts only 8 bytes. For more, please use other functions!
data: data to be decrypted
Returns "" on invalid input.
See also:
BlowfishMBS.DecryptECB(idata as memoryblock, odata as memoryblock, offset as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
idata: memoryblock for input data, 8 bytes in size and not nil.
odata: memoryblock for output data, 8 bytes in size and not nil.
offset: offset in input and output memoryblocks
See also:
BlowfishMBS.DecryptOFB64(data as string, byref temp as memoryblock) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
data: data to be decrypted
temp: memoryblock for temporary data. Is created when called with nil value. Pass on following calls to allow data to be shared between function calls.
Returns "" on invalid input.
You can create yourself a twelve byte memoryblock with a starting value you want. First four bytes are position and next 8 bytes the current vector.
This is output feedback mode. Encryption is the same a decryption.
See also:
Some examples using this method:
BlowfishMBS.DecryptOFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
idata: memoryblock for input data, 8 bytes in size and not nil.
odata: memoryblock for output data, 8 bytes in size and not nil.
offset: offset in input and output memoryblocks
length: length of data in memoryblock in bytes. Multiply of 8.
ivec: memoryblock for temporary data, 8 bytes in size and not nil.
num: current position in ivec. Pass 0 as start value and pass the value you get back to the next function call.
Returns "" on invalid input.
You can create yourself a twelve byte memoryblock with a starting value you want. First four bytes are position and next 8 bytes the current vector.
This is output feedback mode. Encryption is the same a decryption.
See also:
BlowfishMBS.Encrypt(iodata as memoryblock)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
input and output are in host endian format.
memoryblock must be not nil and has a size of 8 bytes.
See also:
BlowfishMBS.EncryptCBC(data as string, byref temp as memoryblock) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
data: data to be encrypted
temp: memoryblock for temporary data. Is created when called with nil value. Pass on following calls to allow data to be shared between function calls.
Returns "" on invalid input.
You can create yourself an eight byte memoryblock with a starting value you want.
Be aware that this CBC method works with data in 8 byte blocks, so you need to pad data if needed.
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:
BlowfishMBS.EncryptCBC(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
idata: memoryblock for input data, at least 8 bytes in size and not nil.
odata: memoryblock for output data, at least 8 bytes in size and not nil.
offset: offset in input and output memoryblocks
length: length of data in memoryblock in bytes. Multiply of 8.
ivec: memoryblock for temporary data, 8 bytes in size and not nil.
ivec should be a memoryblock of 8 bytes size which you create before calling the function for the first time. On the next time you passed the same block, so the function can store data inside this memoryblock between function calls.
Be aware that this CBC method works with data in 8 byte blocks, so you need to pad data if needed.
See also:
BlowfishMBS.EncryptCFB64(data as string, byref temp as memoryblock) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
data: data to be encrypted
temp: memoryblock for temporary data. Is created when called with nil value. Pass on following calls to allow data to be shared between function calls.
Returns "" on invalid input.
You can create yourself a twelve byte memoryblock with a starting value you want. First four bytes are position and next 8 bytes the current vector.
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:
BlowfishMBS.EncryptCFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
idata: memoryblock for input data, 8 bytes in size and not nil.
odata: memoryblock for output data, 8 bytes in size and not nil.
offset: offset in input and output memoryblocks
length: length of data in memoryblock in bytes. Multiply of 8.
ivec: memoryblock for temporary data, 8 bytes in size and not nil.
num: current position in ivec. Pass 0 as start value and pass the value you get back to the next function call.
Returns "" on invalid input.
You can create yourself a twelve byte memoryblock with a starting value you want. First four bytes are position and next 8 bytes the current vector.
See also:
BlowfishMBS.EncryptECB(data as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function encrypts only 8 bytes. For more, please use other functions!
data: data to be encrypted
Returns "" on invalid input.
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:
BlowfishMBS.EncryptECB(idata as memoryblock, odata as memoryblock, offset as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function encrypts only 8 bytes. For more, please use other functions!
idata: memoryblock for input data, 8 bytes in size and not nil.
odata: memoryblock for output data, 8 bytes in size and not nil.
offset: offset in input and output memoryblocks
length: length of data in memoryblock in bytes. Multiply of 8.
See also:
BlowfishMBS.EncryptOFB64(data as string, byref temp as memoryblock) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
data: data to be encrypted
temp: memoryblock for temporary data. Is created when called with nil value. Pass on following calls to allow data to be shared between function calls.
Returns "" on invalid input.
You can create yourself a twelve byte memoryblock with a starting value you want. First four bytes are position and next 8 bytes the current vector.
This is output feedback mode. Encryption is the same a decryption.
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:
BlowfishMBS.EncryptOFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
idata: memoryblock for input data, 8 bytes in size and not nil.
odata: memoryblock for output data, 8 bytes in size and not nil.
offset: offset in input and output memoryblocks
length: length of data in memoryblock in bytes. Multiply of 8.
ivec: memoryblock for temporary data, 8 bytes in size and not nil.
num: current position in ivec. Pass 0 as start value and pass the value you get back to the next function call.
Returns "" on invalid input.
You can create yourself a twelve byte memoryblock with a starting value you want. First four bytes are position and next 8 bytes the current vector.
This is output feedback mode. Encryption is the same a decryption.
See also:
BlowfishMBS.SetKey(key as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Encryption and Hash | MBS Encryption Plugin | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The longer the key, the better. Suggested is at least 16 bytes.
The items on this page are in the following plugins: MBS Encryption Plugin.