RC4MBS 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 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.


💬 Ask a question or report a problem