rpofs

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 3 Imported by: 1

README

RPoFS

Random Password of Fixed Size, R.P.o.F.S.

This packages offers a convenient generator of a random password of a fixed size.

Documentation

Index

Constants

View Source
const (
	ErrPasswordLengthTooSmall             = "password's length is too small"
	ErrPasswordLengthTooBig               = "password's length is too big"
	ErrAllowedPasswordSymbolsSetShort     = "allowed password symbols set is too short"
	ErrAllowedPasswordSymbolsSetNotUnique = "allowed password symbols set is not unique"
)
View Source
const (
	PasswordLengthMax = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func NewGenerator

func NewGenerator(pwdSize int, allowedSymbols []rune) (g *Generator, err error)

func (*Generator) CreatePassword

func (g *Generator) CreatePassword() (password *string, err error)

Jump to

Keyboard shortcuts

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