主密码算法的python实现。
mpw的Python项目详细描述
主密码
这是由 Maarten Billemont。它还带有一个命令行界面,允许 您可以根据主密码计算站点的密码。
安装
这个包需要python 3(用3.4测试)并使用scrypt, cryptography(这两种情况都需要编译器)、click和pyperclip。
安装时使用pip:
$ pip install mpw
或者更好,使用pipsi:
$ pipsi install --python `which python3` mpw
此应用程序将密码复制到剪贴板。这应该是开箱即用的 在OS X和Windows上。在linux上,mpw使用操作系统附带的xclip或xsel命令。否则运行:
$ sudo apt-get install xclip
$ # or
$ sudo apt-get install xsel
或者,可以安装gtk或pyqt4模块。
随后可能会出现二进制可执行文件(例如,用于Windows的安装程序)。
使用量
$ # Add a user $ mpw adduser Alice Enter master password: Confirm master password: Added user "Alice". # Add a site for Alice $ mpw addsite test-site Enter master password for"Alice": Added site "test-site"for user "Alice". $ # Actually get the password $ mpw get test-site Enter master password for"Alice": Password for"test-site"for user "Alice" was copied to the clipboard. $ # You can also pipe a password to other commands: $ mpw get -e server-root | sudo -S vim /etc/crontab
有关详细信息,请查看帮助:
$ mpw --help
更改日志
0.4–2015年2月7日
- [更改]如果输入错误,请三次询问用户密码 而不是第一次放弃。
- [新]实现了算法的v3。它的行为类似于在 mpw 0.3,因为我不小心修复了官方版本v2的问题 实现在我自己的实现中。
0.3–2015年2月1日
- [更改] ^ {TT3}$不再创建用户或站点,如果它们不存在。
- [更改]新配置文件格式。
- [新]支持多种版本的主密码算法
- [新]实现的算法版本2
- [新]主密钥的哈希版本存储在磁盘上,以通知您 你犯了错。
- [新]用户的站点现在正在磁盘上加密
- [新]用户现在可以更改主密码
- [新]密码现在可以回传到stdout,从而通过管道传递到其他 命令。
- [新]大量测试以确保与参考实现的兼容性
- [新]100%线路和分支覆盖
0.2–2014年9月16日
- [新]添加了许多子命令,允许您存储用户和站点 配置文件中的配置
- [更改]mpw SITE现在是mpw get SITE
0.1–2014年8月21日
- 初次发布。