-   Linux - Newbie (
-   -   OPENSSL AES-128-CBC Encoding Format (

AbdulKabani 05-20-2012 11:29 AM

OPENSSL AES-128-CBC Encoding Format
I am able to encrypt and decrypt data file using openssl aes-128-cbc from command line but when I try to decrypt it using ManagedOpenSSL (Wrapper for C#) I do not get desired result. The real issue is encoding format. Please let me know the encoding format for encrypted file created using following command:

C:\2012\Crypto\OpenSSL>C:\OpenSSL-Win32\bin\openssl enc -e -aes-128-cbc -in NormalData.txt -out EncryptedData.txt -K hexKey -iv hexIV

where hexKey and hexIV are key and iv in hex(32 bytes).
File is properly decrypted using
C:\2012\Crypto\OpenSSL>C:\OpenSSL-Win32\bin\openssl enc -d -aes-128-cbc -in EncryptedData.txt -out DEcryptedData.txt -K hexKey -iv hexIV

All times are GMT -5. The time now is 08:22 AM.