2,161
社区成员
发帖
与我相关
我的任务
分享
$ echo "this is a test" > tmp
$ base64 < tmp
dGhpcyBpcyBhIHRlc3QK
$ echo dGhpcyBpcyBhIHRlc3QK | base64 -d
this is a test
$ echo "another test" | perl -e 'use MIME::Base64; $_ = encode_base64(<>); print;'
YW5vdGhlciB0ZXN0Cg==
$ echo YW5vdGhlciB0ZXN0Cg== | perl -e 'use MIME::Base64; $_ = decode_base64(<>); print;'
another test