gisostallenberg/correct-horse-battery-staple-api
Composer 安装命令:
composer create-project gisostallenberg/correct-horse-battery-staple-api
包简介
Microservice for the password strength checker 'correct-horse-battery-staple'
README 文档
README
Microservice for the password strength checker 'correct-horse-battery-staple'
Usage examples
Example 1
Request
curl -d "correcthorsebatterystaple" https://mypasswordchecker.com/
Response
{"status":0,"message":"OK"}
Example 2
Request
curl -d "123456" https://mypasswordchecker.com/
Response
{"status":109,"message":"it is too simplistic\/systematic"}
Example 3
Request
curl -d "correcthorsebatterystaple" http://mypasswordchecker.com/
Response
{"status":-1,"message":"Only secure connections allowed"}
Possible status codes in json
- 0, OK
- -1, error
- 1, unknown
- 100, it does not contain enough DIFFERENT characters
- 101, it is all whitespace
- 102, it is based on a (reversed) dictionary word
- 103, it is based on a dictionary word
- 104, it is based on your username
- 105, it is based upon your password entry
- 106, it is derivable from your password entry
- 107, it is derived from your password entry
- 108, it is too short
- 109, it is too simplistic/systematic
- 110, it is WAY too short
- 111, you are not registered in the password file
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-02