password

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: UPL-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword(length int) (string, error)

GeneratePassword will generate a password of length

func GeneratePasswordUsingMode added in v1.3.0

func GeneratePasswordUsingMode(length int, mode int) (string, error)

GeneratePasswordUsingMode will generate a password of length with mode

func GenerateRandomAlphaLower added in v1.3.0

func GenerateRandomAlphaLower(length int) (string, error)

GenerateRandomAlphaLower will generate a lower-case alpha string of length Should be used only for generating semi-unique, non-cryptographic, non-secret strings -- NOT passwords!

func MaskFunction

func MaskFunction(prefix string) func(string) string

MaskFunction creates a function intended to mask passwords which are substrings in other strings f := MaskFunction("pw=") creates a function that masks strings like so: f("pw=xyz") = "pw=******"

Types

This section is empty.

Jump to

Keyboard shortcuts

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