Documentation ¶
Index ¶
- type Passgen
- type PassgenOption
- func WithCustomSpecials(specials string) PassgenOption
- func WithLength(length int) PassgenOption
- func WithPassphrase(passphrase string) PassgenOption
- func WithSalt(salt string) PassgenOption
- func WithVersion(version int) PassgenOption
- func WithoutNumbers() PassgenOption
- func WithoutSpecials() PassgenOption
- func WithoutUppers() PassgenOption
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
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
Click to show internal directories.
Click to hide internal directories.