password

package
v0.0.0-...-b26f218 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) app.Password

Types

type Option

type Option func(*Password)

type Password

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

func (*Password) Compare

func (p *Password) Compare(hashedPassword, password []byte) bool

func (*Password) Generate

func (p *Password) Generate(length int) string

Generate using for generation password

func (*Password) Hashing

func (p *Password) Hashing(password string) ([]byte, error)

Jump to

Keyboard shortcuts

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