simpletextcrypt icon indicating copy to clipboard operation
simpletextcrypt copied to clipboard

[Question] Decrypt text in linux

Open kepinpin opened this issue 8 years ago • 1 comments

Hi, from the readme.md it said that the plaintext uses AES in CBC mode with PKCS5 padding for encryption. If I know the key, is it possible to decrypt the encrypted-text in linux with the openssl command?

kepinpin avatar Jul 19 '17 07:07 kepinpin

Sorry for the very long delay.

Yes. It uses standard algorithms. Note two things:

  1. IV (initial vector) is a random string. First 16 chars of the encrypted string (the string app produce) is the IV. You need to separate that from the enctypted string.

  2. Encrypted string is in the Base 64 format. I don't know if openssl accept it as it is. You may need to convert that to other formats.

aidin36 avatar Oct 04 '17 17:10 aidin36