AES File Encryption Library & Sample

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
Rathinagiri
Posts: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

AES File Encryption Library & Sample

Post by Rathinagiri » 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.
aes.jpg
aes.jpg (21.71 KiB) Viewed 3338 times
aes.zip
(53.51 KiB) Downloaded 464 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
esgici
Posts: 4518
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 391 times
Been thanked: 111 times
Contact:

Post by esgici » Fri Jan 27, 2012 10:55 pm

Hi Rathi

Perfect :!: ( as always ) 8-)

Thanks a lot :)

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Post by fchirico » Sat Jan 28, 2012 3:23 am

Thanks rathinagiri!

very interesting.
Saludos, Fernando Chirico.

User avatar
salamandra
Posts: 134
Joined: Thu Jul 31, 2008 8:33 pm
Location: Brazil
Has thanked: 1 time
Been thanked: 1 time

Post by salamandra » Sat Jan 28, 2012 7:53 pm

;) Thanks a lot rathi, it is perfect


[]´s Salamandra
There is one time in which is crucial awakening. That time is now. ( Buddha )

Post Reply