passgen

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Passgen

type Passgen struct {
	Version        int
	Passphrase     string
	Salt           string
	Length         int
	NoUppers       bool
	NoNumbers      bool
	NoSpecials     bool
	CustomSpecials string
}

func NewPasswordGenerator

func NewPasswordGenerator(opts ...PassgenOption) *Passgen

func (*Passgen) Generate

func (p *Passgen) Generate() string

func (*Passgen) V1

func (p *Passgen) V1() string

func (*Passgen) V2

func (p *Passgen) V2() string

type PassgenOption

type PassgenOption func(*Passgen)

func WithCustomSpecials

func WithCustomSpecials(specials string) PassgenOption

func WithLength

func WithLength(length int) PassgenOption

func WithPassphrase

func WithPassphrase(passphrase string) PassgenOption

func WithSalt

func WithSalt(salt string) PassgenOption

func WithVersion

func WithVersion(version int) PassgenOption

func WithoutNumbers

func WithoutNumbers() PassgenOption

func WithoutSpecials

func WithoutSpecials() PassgenOption

func WithoutUppers

func WithoutUppers() PassgenOption

Jump to

Keyboard shortcuts

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