Hi,

remember the entire openssl is open-source? if you would like to know how to code certain things the openssl command line utility can perform, look right into its source codes in apps\

as for the enc/dec functions, look in the file apps\enc.c

i'm sure u can figure out from there

Brian Murphy wrote:
Hi

The text "some text 123" in file named test.txt was encrypted with the following command
'openssl enc -aes128 -in test.txt -out test.enc -e -a -pass pass:secretpass'
producing the following ciphertext in file test.enc
U2FsdGVkX18mIAVV3TboGOejkyD0b9XGmr0MqwHIuEw=


I am now trying to decrypt this ciphertext using the openSSL libraries rather than the openSSL command line utility. Being new to the library, if anyone could help me out, I'd much appreciate it. I have been attempting to decrypt it using AES_set_decrypt_key() and AES_decrypt() functions but have been unsuccessful so far. What I am looking for is some code samples.

Thanks,
Brian

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to