๐Ÿ›๏ธOpenSSL

Commands

List Ciphers

openssl list -cipher-commands

Base64

echo "Hello World" > plain.txt

# Encoding
openssl enc -base64 -in plain.txt

# Saving the output
openssl enc -base64 -in plain.txt -out cipher.txt

# Decoding
openssl enc -base64 -d in cipher.txt

AES 128

# Encryption
openssl enc -aes-128-cbc -in plain.txt -out cipher
<Enter a password>

# Decryption
openssl enc -aes-128-cbc -d -in cipher -out cipher-dec.txt

RSA

Encrypted Linux Passwd

Last updated

Was this helpful?