用 pass 管理命令行密码
把密码保存在 GPG 加密的存储中,按需取出。
运行 pass generate example.com 20,为该条目生成 20 位密码。
01命令
命令
$ pass generate example.com 2002作用说明
pass 把每个密码保存为 ~/.password-store 下的小型 GPG 加密文件,可用 git 同步。用 pass show -c 网址 复制密码到剪贴板,用 pass insert 录入已有密钥;格式透明、可脚本化。
03风险
!注意: 安全性取决于你的 GPG 密钥;密钥过弱或未备份可能导致全部条目泄露或无法访问。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- Password Store依据: Debian packages pass, the standard Unix password manager backed by GPG and git.
- Debian package: pass依据: Debian packages pass, the standard Unix password manager backed by GPG and git.
最后验证: 2026-09-22 · 分类: 安全与隐私