openssl ECB output

Ali Khalfan ali.khalfan at gmail.com
Thu Sep 23 23:55:27 UTC 2010


 thanks....i do see the same now,

C de-Avillez wrote:
> On Thu, 23 Sep 2010 19:07:39 -0400
> Ali Khalfan <ali.khalfan at gmail.com> wrote:
>
>>  don't know if anyone has ever tried this before.  But I'm trying to
>> demonstrate the weakness of electronic code book block encryption by
>> using using openssl.  There is an option in openssl in openssl to
>> select dec-ecb.  So  I gave it a shot.
>>
>> So I fed the following into the terminal
>>
>> openssl des-ecb -kfile deskty -in test.txt -out someEncryptedFile
>>
>>
>> However, everytime, I get a different output.
>>
>> Is there any parameter i need to set in openssl to get the same
>> outpu?
>
> You probably want to pass '-nosalt' on the openssl call [1]: the
> default is to salt the keys. Since it is a demonstration, no problem...
>
> Cheers,
>
> [1] 'man enc' for details




More information about the ubuntu-users mailing list