Files
tldr/pages.zh/common/gpg-zip.md
2022-03-27 02:25:15 -03:00

17 lines
460 B
Markdown
Raw 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}}`