genpassw

package
v0.0.0-...-17ddb13 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Password

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

Password holds the length of the password

func New

func New(length int) *Password

New returns Password struct with a specified length

func (*Password) GenerateChars

func (p *Password) GenerateChars() string

GenerateChars generate password based on characters

func (*Password) GenerateComplex

func (p *Password) GenerateComplex() string

GenerateComplex generate password based on the three type before string + special characters + integers

func (*Password) GenerateInts

func (p *Password) GenerateInts() string

GenerateInts generate password base on integers

func (*Password) GenerateSpchars

func (p *Password) GenerateSpchars() string

GenerateSpchars generate password based on special character

type PwType

type PwType interface {
	GenerateChars() string
	GenerateInts() string
	GenerateSpchars() string
	GenerateComplex() string
}

PwType interface that holds the methods available to generate a password

Jump to

Keyboard shortcuts

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