Mac 把檔案轉成 Base64


#base64#mac

Encode


輸出到另一個檔案

base64 -i input.key -o base64_output.txt

轉完複製到剪貼簿

base64 -i input.key | pbcopy

Decode


解碼回檔案

base64 -d -i base64_output.txt -o input.key

解碼到剪貼簿

base64 -d -i base64_output.txt | pbcopy