# 密码强度检测

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/password/check:
    get:
      summary: 密码强度检测
      deprecated: false
      description: ''
      tags:
        - 🍱 实用功能
      parameters:
        - name: password
          in: query
          description: 待检测的密码
          required: true
          example: qwer1234
          schema:
            type: string
        - name: encoding
          in: query
          description: 编码方式，支持 text/json/markdown
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      password:
                        type: string
                      length:
                        type: integer
                      score:
                        type: integer
                      strength:
                        type: string
                      entropy:
                        type: number
                      time_to_crack:
                        type: string
                      character_analysis:
                        type: object
                        properties:
                          has_lowercase:
                            type: boolean
                          has_uppercase:
                            type: boolean
                          has_numbers:
                            type: boolean
                          has_symbols:
                            type: boolean
                          has_repeated:
                            type: boolean
                          has_sequential:
                            type: boolean
                          character_variety:
                            type: integer
                        required:
                          - has_lowercase
                          - has_uppercase
                          - has_numbers
                          - has_symbols
                          - has_repeated
                          - has_sequential
                          - character_variety
                      recommendations:
                        type: array
                        items:
                          type: string
                      security_tips:
                        type: array
                        items:
                          type: string
                    required:
                      - password
                      - length
                      - score
                      - strength
                      - entropy
                      - time_to_crack
                      - character_analysis
                      - recommendations
                      - security_tips
                required:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 🍱 实用功能
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5757303/apis/api-346341151-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://60s.viki.moe
    description: 正式环境
security: []

```
