Files
tldr/pages.zh/common/gpg-zip.md

16 lines
469 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# gpg-zip
> 使用 GPG 加密文件和目录到一个归档中。
> 更多信息:<https://www.gnupg.org/documentation/manuals/gnupg/gpg_002dzip.html>。
- 使用密码短语将目录加密为 `archive.gpg`
`gpg-zip --symmetric --output {{archive.gpg}} {{path/to/directory}}`
-`archive.gpg` 解密为同名目录:
`gpg-zip --decrypt {{path/to/archive.gpg}}`
- 列出加密的 `archive.gpg` 的内容:
`gpg-zip --list-archive {{path/to/archive.gpg}}`