# Simple Basic Encryption – Most commonly used algorithms

[problem]

Want to know the encryption short or long names.

[/problem]

[solution]

DES – Digital Encryption Standard. Symmetric block encryption algorithm

3DES – Triple DES. Symmetric block algo – uses DES three times.

RC4 – Rivest Cipher #4. Symmetric algo uses stream encryption.

RSA – Rivest, Shamir, Adelman. Symmetric block algo.

IDEA – International Data Encryption Algo, symmetric block algo – used by PGP.

AES – Advanced Encryption Standard (Rijndael) – symmetric block algo.

[/solution]

[example]

Demo of des3, rc4 and aes256 – using abc123 as password and thecatsatonthemat

` \$ echo thecatsatonthemat |  openssl enc -des3 -a -e -k abc123 U2FsdGVkX1/I03dG1d8bGYycfojc4x/S5uU1YIf1QRPRw+9AgKhVCw== \$ echo "U2FsdGVkX1/I03dG1d8bGYycfojc4x/S5uU1YIf1QRPRw+9AgKhVCw==" | openssl enc -des3 -a -d -k abc123 thecatsatonthemat \$ echo thecatsatonthemat |  openssl enc -rc4 -a -e -k abc123 U2FsdGVkX1+NuZk94r5kJdFfw8gsjlO9ZV7BDXLwm+3PNg== \$ echo "U2FsdGVkX1+NuZk94r5kJdFfw8gsjlO9ZV7BDXLwm+3PNg==" |  openssl enc -rc4 -a -d -k abc123 thecatsatonthemat \$ echo thecatsatonthemat |  openssl enc -aes256 -a -e -k abc123 U2FsdGVkX1/bGQ0rtpGi6CjkeAyyEgQjnxkSWBQ6q7XLgAApdWHA5BdEuK24r/NY \$ echo "U2FsdGVkX1/bGQ0rtpGi6CjkeAyyEgQjnxkSWBQ6q7XLgAApdWHA5BdEuK24r/NY" |  openssl enc -aes256 -a -d -k abc123 thecatsatonthemat `

[/example]

[reference]