美文网首页
decode/encode base64 string

decode/encode base64 string

作者: yingjieg | 来源:发表于2018-03-18 10:21 被阅读10次
    • base64 program from the coreutils package:
    echo QWxhZGRpbjpvcGVuIHNlc2FtZQ== | base64 --decode
    
    • openssl
    $ openssl enc -base64 <<< 'Hello, World!'
    SGVsbG8sIFdvcmxkIQo=
    
    $ openssl enc -base64 -d <<< SGVsbG8sIFdvcmxkIQo=
    Hello, World!
    
    • python base64 module
    echo $1 | python -m base64 -d
    

    相关文章

      网友评论

          本文标题:decode/encode base64 string

          本文链接:https://www.haomeiwen.com/subject/gitafftx.html