2021-01-30 03:16:53 +00:00
|
|
|
|
# gpg-zip
|
|
|
|
|
|
|
|
|
|
> 使用`GPG`加密存档中的文件和目录。
|
2021-08-31 08:13:49 +01:00
|
|
|
|
> 更多信息:<https://www.gnupg.org/documentation/manuals/gnupg/gpg_002dzip.html>.
|
2021-01-30 03:16:53 +00:00
|
|
|
|
|
2022-03-27 06:25:15 +01:00
|
|
|
|
- 使用密码将一个目录加密为`archive.gpg`:
|
2021-01-30 03:16:53 +00:00
|
|
|
|
|
|
|
|
|
`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}}`
|