Created
August 3, 2023 09:55
-
-
Save pgebert/9de06def8dd6b2d500670eab83901267 to your computer and use it in GitHub Desktop.
Encodes and decodes a string on a Linux system.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by pgebert on 03/08/23. | |
* | |
* Encodes and decodes a string on a Linux system. | |
*/ | |
// encode with base64 - Output: SGVsbG8= | |
echo -n 'Hello' | base64 | |
// decode from base64 - Output: Hello | |
echo -n 'SGVsbG8=' | base64 --decode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment