Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the base64 command of Linux

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge of this article "how to use the base64 command of Linux", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use the base64 command of Linux" article.

Linux common commands base64 commands are used to encode / decode files or standard input and output.

Usage: base64 [option]... [file] use Base64 to encode / decode files or standard input and output.

-d,-decode decode data-I,-ignore-garbag ignore non-alphabetic characters when decoding

-w,-wrap= characters wrap automatically after the specified number of characters (default is 76), 0 disables automatic line wrapping

-- help displays this help and exits-- version displays version information and exits. If no file is specified, or if the file is "-", it is read from standard input.

The data is encoded in the Base64 letter format specified by RFC 3548. When decoding, the input data (encrypted stream) may contain some new line characters that are not valid Base64 characters. You can try to recover any non-base64 characters in the encrypted stream with the-ignore-garbage option.

Example 1

[root@localhost ~] # echo test | base64 # encryption dGVzdAo= [root@localhost ~] # echo dGVzdAo= | base64-d # decryption test example 2

[root@web] # base64-d 1.txt # decrypted the contents of the file hello world above is about "how to use the base64 command of Linux" this article, I believe you all have a certain understanding, I hope the content shared by the editor will be helpful to you, if you want to learn more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report