decode base64: invalid input

前端 未结 4 585
执念已碎
执念已碎 2021-02-01 13:37

Trying to decode base64 file on GNU/Linux, I get \"base64: invalid input\".

$ base64 test.zip | base64 -d > test2.zip
base64: invalid input
$ ll test*
-rw-r--         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 13:48

    You can also try using

    echo -n
    

    to suppress new lines and padding the input length to a multiple of 4 with one to three equal characters

    =
    

提交回复
热议问题