AESMBS class

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

AESMBS class   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Encryption and Hash MBS Encryption Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use CipherMBS instead.
A class for AES encryption.
Example
dim a as AESMBS
dim key as MemoryBlock
dim data as MemoryBlock

key=NewMemoryBlock(20)
key.CString(0)="Hello World!1234" // 16 byte key for 128bit

a=new AESMBS

if a.SetKey(key, 128) then

data=NewMemoryBlock(20)
data.StringValue(0,16)="Hello World!"
MsgBox "Before: "+data.StringValue(0,16)
a.Encrypt(data)
MsgBox "After encryption: "+data.StringValue(0,16)
a.Decrypt(data)
MsgBox "After decryption: "+data.StringValue(0,16)
else
MsgBox "Failed"
end if

For newer projects we recommend switching to CipherMBS class.

This class has low level functions like Encrypt. It also has mid level functions like EncryptCFB/CBC. For your convenience, we also have high level functions like EncryptString.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


ACLRightMBS   -   AliasInfoMBS


💬 Ask a question or report a problem