AES File Encryption Library & Sample
Posted: Fri Jan 27, 2012 9:45 pm
Hi,
I am glad to attach a library for AES File Encryption along with a demo to encrypt/decrypt a file using password. This library is based on PolarSSL
Extract the contents in your HMG 3.0.40 directory. A directory in the name of 'aes' will be created which contains the source and sample subdirectories.
You can call the following function for crypt/decrypting a file:
CryptFileAES( cFileIn, cFileOut, cPassword, nMode )
nMode = 0 (For Encryption)
nMode = 1 (For Decryption)
cPassword can be either a character string or a key filename also!
Please give your comments.
I am glad to attach a library for AES File Encryption along with a demo to encrypt/decrypt a file using password. This library is based on PolarSSL
Extract the contents in your HMG 3.0.40 directory. A directory in the name of 'aes' will be created which contains the source and sample subdirectories.
You can call the following function for crypt/decrypting a file:
CryptFileAES( cFileIn, cFileOut, cPassword, nMode )
nMode = 0 (For Encryption)
nMode = 1 (For Decryption)
cPassword can be either a character string or a key filename also!
Please give your comments.