pwdgen

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Digits       = "0123456789"
	Upper        = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	Lower        = "abcdefghijklmnopqrstuvwxyz"
	Syms         = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
	CharAlpha    = Upper + Lower
	CharAlphaNum = Digits + Upper + Lower
	CharAll      = Digits + Upper + Lower + Syms
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New added in v1.2.1

func New(length int, characters string) *Generator

func (*Generator) Generate

func (g *Generator) Generate() (string, error)

func (*Generator) GenerateMemorable

func (g *Generator) GenerateMemorable(capitals bool, symbols bool) (string, error)

Jump to

Keyboard shortcuts

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