命令行密码管理器
pwstore的Python项目详细描述
python中的cli密码管理器。灵感来自 Jason A的密码存储[1]。 多恩菲尔德。
用法
Usage: pwstore [OPTIONS] RECORD COMMAND [ARGS]... Options: -?, -h, --help Show this message and exit. Commands: add Create a new record alias Create a symlink named ALIAS copy Copy a KEY value to the system clipboard delete Delete KEY from a record drop Delete an entire record from the disk get Retrieve a KEY value from a record list List the keys in a record qrcode Display a KEY value as a qrcode qrcodei Display a KEY value as a qrcode in a png select Decrypt a record and print it raw type Type a KEY value at the cursor position update Update a record's KEY with VALUE
依赖性
基本功能需要以下非标准依赖项:
pip3 install python-gnupg dulwich appdirs click
一些额外功能有可选的依赖项:
要在终端中将密码显示为qrcodes,
pip3 install pyqrcode
要将密码显示为qrcodes图像,
pip3 install pyqrcode Pillow pypng
要将密码复制到剪贴板,
pip3 install pyperclip
并在当前光标位置键入密码。
pip3 install pyautogui
gpg
和密码存储一样,pwstore使用gpg加密来安全地存储数据。 现在,您必须在环境中设置收件人密钥:
export PWSTORE_KEY='0xA96895ACB7F4970C'
示例
创建新记录
pwstore github.com add
创建别名
pwstore github.com alias github
添加密码
pwstore github update password "$(apg -n1)"
添加一些元数据
pwstore github update login_url "http://github.com"
pwstore github update username rpdelaney
为什么使用pw?
在大多数情况下,您应该使用密码存储。总的来说 成熟,特征丰富。
主要的区别是pwstore以json格式存储数据,使 要存储其他元数据,如用户名、登录页URL等:
pwstore github.com update username rpdelaney