Platforms to show: All Mac Windows Linux Cross-Platform

OldAESMBS class   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Encryption and Hash MBS Encryption Plugin 4.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Function: A class for AES encryption.
Example:
dim a as OldAESMBS
dim key as MemoryBlock
dim data as MemoryBlock

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

a=new OldAESMBS

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
This item is deprecated and should no longer be used. You can use CipherMBS instead.
Notes:
Please don't use this class. This class is deprecated and just kept for compatibility. This class will not be available in 64bit.

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.
  • 14 methods
    • method Decrypt(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
    • method DecryptCBC(idata as memoryblock, LengthBytes as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
    • method DecryptCFB(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
    • method DecryptCFBOld(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
    • method DecryptString(idata as string, IVector as memoryblock=nil) as string
    • method DecryptStringOld(idata as string, IVector as memoryblock=nil) as string
    • method Encrypt(idata as memoryblock, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
    • method EncryptCBC(idata as memoryblock, LengthBytes as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
    • method EncryptCFB(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
    • method EncryptCFBOld(idata as memoryblock, LengthBytes as Integer, byref IVectorOffset as Integer, IVector as memoryblock=nil, odata as memoryblock=nil, iOffset as Integer=0, oOffset as Integer=0)
    • method EncryptString(idata as string, IVector as memoryblock=nil) as string
    • method EncryptStringOld(idata as string, IVector as memoryblock=nil) as string
    • method SetKey(key as memoryblock, nBits as Integer) as boolean
    • method SetKey(key as string) as boolean

This class has no sub classes.

Blog Entries


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


ODSessionMBS   -   OldPhidgetAccelerometerMBS


💬 Ask a question or report a problem
The biggest plugin in space...