PureAES library
Overview
This is a Purebasic 4.6x user library.Functions
PureAES_Encrypt(*Buffer, *BufferLen.Long, EncryptionKey.s)Encrypts a memory buffer with a password.PureAES_Decrypt(*Buffer, *BufferLen.Long, EncryptionKey.s)
Parameters :
Input :
*Buffer : pointer to the input buffer (to encrypt)
*BufferLen : pointer to a variable containing the input buffer length
EncryptionKey : encryption key (mandatory)
Output :
*BufferLen : pointer to a variable containing the ouput buffer length
Returned value :
#Null : encryption failed
Else : address to output buffer (encrypted)
Decrypts a memory buffer.PureAES_FreeBuffer(*Memory)
Parameters :
Input :
*Buffer : pointer to the input buffer (to decrypt)
*BufferLen : pointer to a variable containing the input buffer length
EncryptionKey : encryption key (mandatory)
Output :
*BufferLen : pointer to a variable containing the ouput buffer length
Returned value :
#Null : decryption failed
Else : address to output buffer (decrypted)
Free memory allocated by PureAES functions PureAES_Encrypt() and PureAES_Decrypt().