[openssl-users] Encrypt/Decrypt files using openssl's crypto libraries

Wesley openssl at aise.re
Sun Feb 7 14:49:02 UTC 2016


Hi,

I want to make an app that will encrypt/decrypt files using the 
OpenSSL's crypto libraries.

Actually i can encrypt files using system() with the command line (and 
VARIABLES) :

"/usr/bin/openssl enc -aes-256-cbc -salt -in FILENAME -out FILENAME_ENC 
-pass pass:HASH"

and decrypt file using :

"/usr/bin/openssl enc -aes-256-cbc -d -in FILENAME_ENC -out FILENAME 
-pass pass:HASH"

I read this : 
https://wiki.openssl.org/index.php/EVP_Symmetric_Encryption_and_Decryption
But i don't know where to start... Does anyone can help me ?

Thank you very much for your replies.



Cheers,

Wesley




More information about the openssl-users mailing list