gisostallenberg/correct-horse-battery-staple-api

用于密码强度检查器 'correct-horse-battery-staple' 的微服务

1.0.0 2015-12-02 16:45 UTC

This package is auto-updated.

Last update: 2024-09-24 05:10:48 UTC


README

用于密码强度检查器 'correct-horse-battery-staple' 的微服务

使用示例

示例 1

请求

curl -d "correcthorsebatterystaple" https://mypasswordchecker.com/

响应

{"status":0,"message":"OK"}

示例 2

请求

curl -d "123456" https://mypasswordchecker.com/

响应

{"status":109,"message":"it is too simplistic\/systematic"}

示例 3

请求

curl -d "correcthorsebatterystaple" http://mypasswordchecker.com/

响应

{"status":-1,"message":"Only secure connections allowed"}

JSON 中可能的状态码

  • 0, 正常
  • -1, 错误
  • 1, 未知
  • 100, 不包含足够的不同字符
  • 101, 全部为空格
  • 102, 基于一个(反向的)字典单词
  • 103, 基于一个字典单词
  • 104, 基于你的用户名
  • 105, 基于你的密码输入
  • 106, 可从你的密码输入推导出
  • 107, 从你的密码输入推导出
  • 108, 太短
  • 109, 太简单/太系统化
  • 110, 太短了
  • 111, 你未在密码文件中注册