Mike Trent wrote:
>
> Moving from DES to AES encryption and all new encryption will be AES.
> However some existing strings were encrypted in DES. Is there a way to
> determine if a string is encrypted in DES or AES? Will the decrypt AES
> fail on a DES encrypted string always or will openssl return a good return
> but with garbage as the decrypted string?
>
>
>
Thanks for the replies.
The solution is actually easier than first thought.
As I am doing new encryption with AES all I need to do is append a byte at
the end of the encrypted string before returning for storage. On later
examination of an encrypted string if a MOD 16 on the string length yields a
1 then I know I have the new encrypted string, and just need to drop off the
last byte and decrypt via AES. Otherwise I have DES.
--
View this message in context:
http://www.nabble.com/openssl-decrypting-unknown-whether-DES-or-AES-encrypted-tp24801444p24816313.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org