前言
使用MacPaw Encrypto官方的命令行工具加解密文件,等同于使用 Mac App Store 的Encrypto.app加解密
下载项目
1 2 3 4
| wget https://github.com/MacPaw/homebrew-taps/raw/binaries/encrypto-cli.bundle-0.0.1.zip unzip encrypto-cli.bundle-0.0.1.zip mv encrypto-cli/encrypto-cli.bundle ./ rm -rf encrypto-cli
|
加密文件
<file_name>
:指定未加密的文件
--output ./
:指定输出目录
1
| encrypto-cli.bundle/Contents/MacOS/encrypto-cli encrypt <file_name> --output ./
|
1 2 3 4 5
| Enter hint 👉 Enter password 🤐 Verify password 🕵 encrypto-cli: 🤔 encrypting... 100% encrypto-cli: 😎 encrypting completed with file at path:
|
解密文件
<file_name>.crypto
:指定已加密的文件
--output ./
:指定输出目录
1
| encrypto-cli.bundle/Contents/MacOS/encrypto-cli decrypt <file_name>.crypto --output ./
|
1 2 3
| Enter password 🤐 encrypto-cli: 🤔 decrypting... 100% encrypto-cli: 😎 decrypting completed with file at path:
|
查看提示信息
<file_name>.crypto
:指定已加密的文件
1
| encrypto-cli.bundle/Contents/MacOS/encrypto-cli preview <file_name>.crypto
|
1
| encrypto-cli: 😉 .crypto hint:
|
完成
参考文献
MacPaw/homebrew-taps