RE: Trying to encrypt with openssl commandline and decrypt using aes or evp

2009-09-07 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Hazel John > Sent: Friday, 04 September, 2009 11:40 > On Thu, Sep 3, 2009 at 6:36 PM, Dave > Thompson wrote: > > commandline enc does PKCS5 block padding (at least for block modes) > > unless you specify -nopad (and then you can only do full

Re: Trying to encrypt with openssl commandline and decrypt using aes or evp

2009-09-04 Thread Hazel John
On Thu, Sep 3, 2009 at 6:36 PM, Dave Thompson wrote: >> From: owner-openssl-us...@openssl.org On Behalf Of Hazel John >> Sent: Thursday, 03 September, 2009 15:25 > >> openssl enc -aes-256-cbc -K >> 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E >> 1F -iv 00112233445566778899AABBCCDD

RE: Trying to encrypt with openssl commandline and decrypt using aes or evp

2009-09-03 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Hazel John > Sent: Thursday, 03 September, 2009 15:25 > openssl enc -aes-256-cbc -K > 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E > 1F -iv 00112233445566778899AABBCCDDEEFF -e -in input.txt -out > output.enc > [and same with -

Re: Trying to encrypt with openssl commandline and decrypt using aes or evp

2009-09-03 Thread Hazel John
This is the openssl command line that I am using To encrypt: openssl enc -aes-256-cbc -K 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F -iv 00112233445566778899AABBCCDDEEFF -e -in input.txt -out output.enc To Decrypt: openssl enc -aes-256-cbc -K 000102030405060708090A0B0C0D0E0F1

Re: Trying to encrypt with openssl commandline and decrypt using aes or evp

2009-09-03 Thread Hazel John
I am specifying the key and IV and using the same hex based string for both. On Thu, Sep 3, 2009 at 2:02 PM, Victor Duchovni wrote: > On Thu, Sep 03, 2009 at 01:51:10PM -0500, Hazel John wrote: > >> Hi, >> I need to encrypt simple strings to readable strings using the openssl >> command line (ope

Re: Trying to encrypt with openssl commandline and decrypt using aes or evp

2009-09-03 Thread Victor Duchovni
On Thu, Sep 03, 2009 at 01:51:10PM -0500, Hazel John wrote: > Hi, > I need to encrypt simple strings to readable strings using the openssl > command line (opessl enc with the -a option to return readable > strings) and decrypt this in my code (c++/linux). I tried both the low > level aes and evp f

Trying to encrypt with openssl commandline and decrypt using aes or evp

2009-09-03 Thread Hazel John
Hi, I need to encrypt simple strings to readable strings using the openssl command line (opessl enc with the -a option to return readable strings) and decrypt this in my code (c++/linux). I tried both the low level aes and evp functions and couldn't get the results to match. Is there a default padd