Cryptography
Cryptography is the science of protecting information by transforming it into an unreadable format, ensuring confidentiality, integrity, and authenticity. It uses algorithms and keys to encrypt and decrypt data, preventing unauthorized access.
Ciphers
# Alias
alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'"
# Encrypt
echo '<plaintext>' | tr 'A-Za-z' 'N-ZA-Mn-za-m'
# Decrypt
echo '<ciphertext>' | tr 'N-ZA-Mn-za-m' 'A-Za-z'
Online ROT13 encoder
Cyberchef's ROT13 Brute Forcer
Encoders
Encoding converts data into a different format using a specific scheme, primarily to ensure safe transmission or storage. Unlike encryption, encoding is reversible and not intended to keep data secret but to represent it in a compatible way.
# Encode
base64 <TEXT>
# Decode
base64 -d <TEXT>
Hashes
Hashes are fixed-size strings generated from data using mathematical functions. They uniquely represent the original input and are designed to be one-way, meaning the process is not reversible—it's practically impossible to retrieve the original data from the hash. This makes hashes useful for verifying data integrity and securely storing passwords, as even small changes in input produce completely different hashes.
md5sum <TEXT>
openssl md5 <TEXT>
Last updated
Was this helpful?