crypto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SpecialList = "!@#$%^&*()_+-"

Variables

This section is empty.

Functions

func Checkpassword

func Checkpassword(password string, lowercase, uppercase, digit, special bool, specialList string) bool

validate if the password is meeting the complexity requirements

func RandomPassword

func RandomPassword(lengh int, lowercase, uppercase, digit, special bool, specialList string) string

build a password generator function that will generate a password based on the given length and complexity attributes the password will be returned as string

Types

This section is empty.

Jump to

Keyboard shortcuts

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