Linux Base64 encoding and decoding string value

Linux Base64 encoding and decoding string value

From linux commandline interface execute below commands to encode or decode string values.

Encoding

echo -n 'tekspace' | base64

Output:

dGVrc3BhY2U=

Decoding

echo -n dGVrc3BhY2U= | base64 -d

Output:

tekspace