Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

RC4MBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Encryption and Hash MBS Encryption Plugin 3.1 Yes Yes Yes Yes No
Function: An implementation of the RC4 algorithem.
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
The source in RB is in the examples folder (see Crypto 1.5 via RB). This implementation inside the plugin is only to make the calculation faster.
In case RS will improve RB more to produce faster code, the plugin may be no longer needed.

Feedback, Comments & Corrections

  • 4 methods
    • method Constructor(key as MemoryBlock)
    • method Constructor(key as string)
    • method Crypt(data as Memoryblock) as Memoryblock
    • method Crypt(data as string) as string

This class has no sub classes.

Some examples which use this class:

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

RAWSocketMBS   -   RC5MBS

The biggest plugin in space...

MBS FileMaker tutorial videos