AES String Encryption and Decryption


This tool encrypts and decrypts strings using AES-256-CBC, and is fully compatible with OpenSSL.


Description

The Advanced Encryption Standard is the most commonly used encryption algorithm in use on computers and over the internet.

To encrypt a string, select the green Encrypt button, enter the text you want to encrypt in the upper Plaintext box, and enter the key or password that it should be encrypted with in the Key box. The resulting encrypted output will appear in the lower Ciphertext box. Likewise, to decrypt a ciphertext, select the red Decrypt button, enter the text you want to decrypt in the Ciphertext box, and the key used to decrypt it in the Key box. The decrypted output will appear in the Plaintext box.

For this tool to be useful between two parties, you and your partner will need to share a secret key. To generate a shared secret over an insecure channel, use the Diffie-Hellman Key Exchange tool.

Do It Yourself

With OpenSSL, you can encrypt text in the same way as this tool like so.

$ echo "here is my text to encrypt" | openssl enc -aes-256-cbc -base64

After entering the key twice, you will have your encrypted ciphertext.

To decrypt, do the following.

$ echo "U2FsdGVkX18t2eQESKiASuNUcu0IKInN2OhmQteNCy4=" | openssl enc -d -aes-256-cbc -base64

Type the key that was used to encrypt the string at the prompt, and the output will contain the plaintext.