CryptAES

Encrypt and Decrypt data.

OutputVar := CryptAES(AddressOrVar, Size, password , EncryptOrDecrypt, Algorithm)
Function Example: size := CryptAES(var, sz, "password", true)

Parameters

OutputVar

The name of the variable in which to store the size of encrypted memory.

AddressOrVar

Variable or memory address of data to be encrypted or decrypted.

Size

Size of data to be encrypted or decrypted. When encrypting make sure the buffer in AddressOrVar is at least 16 bytes larger than data to be encrypted!

Password

Password to use for encryption or decryption.

EncryptOrDecrypt (optional)

True or 1 to encrypt or false or 0 to decrypted. If omitted data is encrypted.

Algorithm (optional)

Algorithm to use, supported values are 128 for CALG_AES_128, 192 for CALG_AES_192 or 256 for CALG_AES_256. If omitted CALG_AES_256 is used.

Related

ZipRawMemory, UnZipRawMemory