![]() ![]() cGlteWxpZmV1cC5jb20K Encoding a File using Base64 If you want to return the resulting string to its original data, all you need to do is decode it. echo "" | base64īelow you can see the result that was returned by our Linux systems base64 utility. Any input on the left side of the pipe will be passed on to the right side.įor example, to encode the text “ “, we would use the following command. ![]() We will need to use the pipe symbol ( |) to pass a string to the base64 terminal. Passing in a String to Encodeįor our first example, we will be showing you how to encode a base64 string on Linux from the command line. By default, the base64 tool will encode any data that is passed to it. Since we are encoding a string, we do not have to worry about passing in any options. This section will show you an example of how to encode a string on Linux using base64.
0 Comments
Leave a Reply. |