base64编码-解码字符串
Arn0

先确保你的系统装有叫openssl的工具(一般Linux发行版都会默认安装)。

编码

在命令行输入:

1
$ openssl enc -base64 <<< 你要编码的字符串

解码

在命令行输入:

1
$ base64 -d <<< 你要解密的base64

其他功能

openssl还有很多实用功能,如果还想继续了解,参考一下Linux文档吧。

 Comments