pwdgen

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(opt ...Option) (string, string)

Generate 生成密码

Types

type Option

type Option struct {
	Length     int  // 长度
	Ambiguous  bool // 包含易混淆的字符
	BigHead    bool // 首字母大写
	Uppercase  bool // 包含大写字母
	Lowercase  bool // 包含小写字母
	Numbers    bool // 包含数字
	MinNumber  int  // 最少包含数字个数
	Special    bool // 包含特殊字符
	MinSpecial int  // 最少包含特殊字符个数
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL