encode and decode base64 Bash

Linux Dec 19, 2019

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
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
#