Base32, Base64

Base-* are numeral systems. Especially Base32 and Base64 are often used.

Decode

Base16

base16 -d encoded.txt
echo -n '68656c6c6f0a' | base16 -d

Base32

base32 -d encoded.txt
echo -n 'NBSWY3DP' | base32 -d

Base64

base64 -d encoded.txt
echo -n 'aGVsbG8=' | base64 -d


Encode

Base16

base16 example.txt
echo -n 'hello' | base16

Base32

base32 example.txt
echo -n 'hello' | base32

Base64

base64 example.txt
echo -n 'hello' | base64


Generate Random Passwords

Base64

openssl rand -base64 3