What are the functions of linux base64 encoding and decoding

王林
Release: 2023-05-13 10:01:13
forward
3867 people have browsed it

base64 encoding and decoding
base64 encoding
base64 file
Function: Read data from the specified file file, encode it into a base64 string and then output it;

echo "string" | base64
Function: Encode the string string into a base64 string and then output it;

echo -n "string" | base64
Function: Encode the string string into a base64 string Then output;

base64 decoding
base64 -d file
Function: Read the base64-encoded data from the specified file file, then decode it, and output the decoded string;

echo "str" ​​| base64 -d
Function: Decode the base64-encoded string str and blank line, and then output the decoded string;

echo -n " str” | base -d
Function: Decode the base64-encoded string str, and then output the decoded string;

What versions of Linux are there?

The versions of Linux are: Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and other versions. Among them, Deepin is one of the best-developed Linux distributions in China; Ubuntu Kylin is a derivative distribution based on Ubuntu; Manjaro is a Linux distribution based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP and is simple and easy to use; Ubuntu is a desktop application Mainly Linux operating system.

The above is the detailed content of What are the functions of linux base64 encoding and decoding. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!