Platforms to show: All Mac Windows Linux Cross-Platform

Back to RC4MBS class.

RC4MBS.Constructor(key as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Initializes the class with the given key.

See also:

RC4MBS.Constructor(key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Initializes the class with the given key.
Example
dim r as new RC4MBS("MyKey")
dim s as string = r.Crypt("MyData")

MsgBox EncodeHex(s)

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

See also:

RC4MBS.Crypt(data as Memoryblock) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 13.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encryptes or decryptes the given Memoryblock.

See also:

RC4MBS.Crypt(data as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encryptes or decryptes the given string.
Example
dim r as RC4MBS

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

dim OriginalData as string = ConvertEncoding("Hello World!", encodings.UTF8)
dim EncryptedData as string = r.Crypt(OriginalData)
MsgBox EncodeHex(EncryptedData)

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

dim UnencryptedData as string = r.Crypt(EncryptedData)
UnencryptedData = DefineEncoding(UnencryptedData, encodings.UTF8)
MsgBox UnencryptedData

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:

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


The biggest plugin in space...