RC5MBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to RC5MBS class.

RC5MBS.Constructor(key as MemoryBlock, rounds as Integer = 16)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The constructor.
Example
dim r as new RC5MBS("MyKey")
dim s as string = r.Encrypt("MyData")

MsgBox EncodeHex(s)

See also:

RC5MBS.Constructor(key as string, rounds as Integer = 16)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The constructor.
Example
dim r as new RC5MBS("MyKey")
dim s as string = r.Encrypt("MyData")

MsgBox EncodeHex(s)

Please make sure the key has right text encoding to avoid unexpected results.

See also:

RC5MBS.decrypt(data as Memoryblock) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decrypts some data.

Low level variant without any block mode.

See also:

RC5MBS.decrypt(data as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decrypts some data.

Please make sure the key has right text encoding to avoid unexpected results.
Low level variant without any block mode.

See also:

RC5MBS.decryptCBC(data as Memoryblock, iv as memoryblock = nil) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decrypts some data.

With Cipher Block Chaining mode.

See also:

RC5MBS.decryptCBC(data as string, iv as memoryblock = nil) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decrypts some data.

Please make sure the key has right text encoding to avoid unexpected results.
With Cipher Block Chaining mode.

See also:

RC5MBS.decryptCFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decrypts some data.
Example
dim r as RC5MBS

// Encrypt:
r = new RC5MBS("Key")

dim iv as MemoryBlock
dim num as Integer
dim OriginalData as string = ConvertEncoding("Hello World!", encodings.UTF8)
dim EncryptedData as string = r.encryptCFB64(OriginalData, iv, num)
MsgBox EncodeHex(EncryptedData)

// Same for decrypt:
r = new RC5MBS("Key")

iv = nil
num = 0
dim UnencryptedData as string = r.decryptCFB64(EncryptedData, iv, num)
UnencryptedData = DefineEncoding(UnencryptedData, encodings.UTF8)
MsgBox UnencryptedData

with Cipher Feedback mode.

See also:

RC5MBS.decryptCFB64(data as string, iv as memoryblock, byref num as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decrypts some data.

Please make sure the key has right text encoding to avoid unexpected results.
with Cipher Feedback mode.

See also:

RC5MBS.encrypt(data as Memoryblock) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encrypts some data.

Low level variant without any block mode.

See also:

RC5MBS.encrypt(data as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encrypts some data.

Please make sure the key has right text encoding to avoid unexpected results.
Low level variant without any block mode.

See also:

RC5MBS.encryptCBC(data as Memoryblock, iv as memoryblock = nil) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encrypts some data.

With Cipher Block Chaining mode.

See also:

RC5MBS.encryptCBC(data as string, iv as memoryblock = nil) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encrypts some data.

Please make sure the key has right text encoding to avoid unexpected results.
With Cipher Block Chaining mode.

See also:

RC5MBS.encryptCFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encrypts some data.
Example
dim r as RC5MBS

// Encrypt:
r = new RC5MBS("Key")

dim iv as MemoryBlock
dim num as Integer
dim OriginalData as string = ConvertEncoding("Hello World!", encodings.UTF8)
dim EncryptedData as string = r.encryptCFB64(OriginalData, iv, num)
MsgBox EncodeHex(EncryptedData)

// Same for decrypt:
r = new RC5MBS("Key")

iv = nil
num = 0
dim UnencryptedData as string = r.decryptCFB64(EncryptedData, iv, num)
UnencryptedData = DefineEncoding(UnencryptedData, encodings.UTF8)
MsgBox UnencryptedData

with Cipher Feedback mode.

See also:

RC5MBS.encryptCFB64(data as string, iv as memoryblock, byref num as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encrypts some data.

Please make sure the key has right text encoding to avoid unexpected results.
with Cipher Feedback mode.

See also:

RC5MBS.encryptOFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encrypts some data.

with Output Feedback mode.

See also:

RC5MBS.encryptOFB64(data as string, iv as memoryblock, byref num as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encrypts some data.

Please make sure the key has right text encoding to avoid unexpected results.
with Output Feedback mode.

See also:

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


💬 Ask a question or report a problem