Encoding Transformations: Base64
Base64 encoding is a method for converting binary data (like images or files) or text with special characters into a readable string that uses only ASCII characters (A-Z, a-z, 0-9, +, and /). Every 3 bytes of input are divided into 4 groups of 6 bits and mapped to 4 Base64 characters. If the input isn't a multiple of 3 bytes, the output is padded with = characters.
echo -n admin | base64
YWRtaW4=
echo -n YWRtaW4= | base64 -d
admin
Comments
No comments yet.