# 密码生成器

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/password:
    get:
      summary: 密码生成器
      deprecated: false
      description: ''
      tags:
        - 🍱 实用功能
      parameters:
        - name: length
          in: query
          description: 密码长度
          required: false
          example: 0
          schema:
            type: integer
        - name: numbers
          in: query
          description: 是否包含数字，默认包含
          required: false
          schema:
            type: string
        - name: uppercase
          in: query
          description: 是否包含大写字母，默认包含
          required: false
          schema:
            type: string
        - name: lowercase
          in: query
          description: 是否包含小写字母，默认包含
          required: false
          schema:
            type: string
        - name: symbols
          in: query
          description: 是否包含特殊字符，默认不包含
          required: false
          schema:
            type: string
        - name: exclude_similar
          in: query
          description: 是否排除相似字符，默认排除
          required: false
          schema:
            type: string
        - name: exclude_ambiguous
          in: query
          description: 是否排除模糊字符，默认排除
          required: false
          schema:
            type: string
        - name: encoding
          in: query
          description: 编码方式，支持 text/text-detail/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
                      config:
                        type: object
                        properties:
                          include_numbers:
                            type: boolean
                          include_symbols:
                            type: boolean
                          include_lowercase:
                            type: boolean
                          include_uppercase:
                            type: boolean
                          exclude_similar:
                            type: boolean
                          exclude_ambiguous:
                            type: boolean
                        required:
                          - include_numbers
                          - include_symbols
                          - include_lowercase
                          - include_uppercase
                          - exclude_similar
                          - exclude_ambiguous
                      character_sets:
                        type: object
                        properties:
                          lowercase:
                            type: string
                          uppercase:
                            type: string
                          numbers:
                            type: string
                          symbols:
                            type: string
                          used_sets:
                            type: array
                            items:
                              type: string
                        required:
                          - lowercase
                          - uppercase
                          - numbers
                          - symbols
                          - used_sets
                      generation_info:
                        type: object
                        properties:
                          entropy:
                            type: number
                          strength:
                            type: string
                          time_to_crack:
                            type: string
                        required:
                          - entropy
                          - strength
                          - time_to_crack
                    required:
                      - password
                      - length
                      - config
                      - character_sets
                      - generation_info
                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-346338628-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://60s.viki.moe
    description: 正式环境
security: []

```
