generate_password

package
v0.0.0-...-858e686 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Digits    = "0123456789"
	Uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	Lowercase = "abcdefghijklmnopqrstuvwxyz"
	Specials  = "~=+%^*/()[]{}/!@#$?|"
	All       = Digits + Uppercase + Lowercase + Specials
)

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword(length int, level string) string

GeneratePassword generate password, length to set the password length level: default(contains number&character), number(only contains number), char(only contains character), mix(contains number&character), advance(contains number&character&specials)

Types

This section is empty.

Jump to

Keyboard shortcuts

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