Files
tldr/pages.zh/common/pass.md

37 lines
897 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.

# pass
> 存储和读取密码或其他敏感数据。
> 所有数据均经过 GPG 加密,并通过 Git 仓库进行管理。
> 更多信息请访问:<https://www.passwordstore.org>。
- 使用一个或多个 GPG ID 初始化(或重新加密)存储:
`pass init {{gpg_id_1}} {{gpg_id_2}}`
- 保存一个新密码和额外信息(在新行按 Ctrl + D 完成):
`pass insert --multiline {{path/to/data}}`
- 编辑一条记录:
`pass edit {{path/to/data}}`
- 将密码(数据文件的第一行)复制到剪贴板:
`pass -c {{path/to/data}}`
- 列出整个存储树:
`pass`
- 生成一个给定长度的新随机密码,并将其复制到剪贴板:
`pass generate -c {{path/to/data}} {{num}}`
- 初始化一个新的 Git 仓库pass 进行的任何更改将自动提交):
`pass git init`
- 代表密码存储运行 Git 命令:
`pass git {{command}}`