rpnanhai / huami

:sunflower:花密(php版本)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HuaMi

花密(PHP CLI 版本),一个密码生成管理工具,原理和思路详见花密官网

Build Status StyleCI Coverage Status Latest Stable Version Total Downloads License

安装

    $ composer global require rpnanhai/huami

如果你的 ~/.composer/vendor/bin 没添加到 PATH 可以:

    $ export PATH="$PATH:$HOME/.composer/vendor/bin"

使用

Usage:
  huami <password> <key>

Arguments:
  password              your unforget password
  key                   the web sign

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  a password generate tool

例子:

    $ huami 123 qq

如果你是mac系统的话,密码会自动复制到你的粘贴板^v^。

另外如需设置自己的加密key,在项目根目录把 config.ini.bak 修改为 config.ini ,内容格式如下:

[huami]
strOne=rpnanhai
strTwo=huami
strThree=abcdef123456set

License

MIT

About

:sunflower:花密(php版本)

License:MIT License


Languages

Language:PHP 100.0%