base64包不可用。有替代品,所以我可以使用命令吗?

时间:2013-12-12 09:20:52

标签: linux bash base64 busybox

我所在的系统无法安装任何软件包,而我的busybox不包含base64命令。但是我需要运行使用base64 de / encoding的脚本。 有没有办法在脚本中的函数中执行此操作?

1 个答案:

答案 0 :(得分:0)

嗯,en / decode base64的难易程度取决于你系统上安装的

e.g。 openssl can encode and decode base64

$ openssl enc -base64 <<< 'Hello, World!'
SGVsbG8sIFdvcmxkIQo=
$ openssl enc -base64 -d <<< SGVsbG8sIFdvcmxkIQo=
Hello, World!