View Single Post
Posts: 9 | Thanked: 1 time | Joined on Nov 2010
#7
I encrypted a file using this:
openssl enc -e -aes-256-cbc -in originalfile -out encryptedfile -k password
Once encrypted, I tried decrypting on terminal:
openssl enc -d -aes-256-cbc -in encryptedfile -out testfile -k password
It works.
The testfile content is same as originalfile.

However, the encryptedfile, when received by friend on MacOSX, decrypted resulting in this error:
bad decrypt
296:error:0606506D:digital envelope routines:EVP_DecryptFinal:wrong final block length:evp_enc.c:502:

is there problem with openssl implementation of n900?
Edit
The files and password is not real, replaced with sample only.