password

package
v0.64.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlphabetSymbols   = "!@#$%&*?"
	AlphabetAmbiguous = "{}[]()/\\'\"`,;:.<>"
	AlphabetSimilar   = "iI1LoO0"
)

Variables

This section is empty.

Functions

func Generate

func Generate(opts GenerateOpts) string

Generate creates passwords using options selected in `GenerateOpts`.

Types

type GenerateOpts

type GenerateOpts struct {
	Length        uint
	InclLower     bool
	InclUpper     bool
	InclNumbers   bool
	InclSymbols   bool
	InclAmbiguous bool
	ExclSimilar   bool
}

func (GenerateOpts) Alphabet

func (opts GenerateOpts) Alphabet() string

Alphabet builds an alphabet that's useful for passwords.

Jump to

Keyboard shortcuts

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