encode and decode base64 Bash
At times in bash we want to avoid leaving some values in clear text. This is probably not the most secure way but it is enough for some not so critical data.
base64 program is installed from the coreutils package. to encode and decode some text is shown further below
encoding
echo -n "chainkindle.com" | base64
bGludXhjbG91ZC5uZw==
decoding
echo bGludXhjbG91ZC5uZw== | base64 --decode
chainkindle.com