password

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Password

type Password string

func MustParse added in v0.1.1

func MustParse(s string) Password

func Parse added in v0.1.1

func Parse(s string) (p Password, err error)

func (Password) Hash

func (p Password) Hash() (PasswordHash, error)

func (Password) IsValid

func (p Password) IsValid() bool

func (Password) MarshalJSON

func (p Password) MarshalJSON() (b []byte, err error)

func (Password) MustHash

func (p Password) MustHash() PasswordHash

func (Password) String

func (p Password) String() string

func (*Password) UnmarshalJSON

func (p *Password) UnmarshalJSON(b []byte) error

func (Password) Validate

func (p Password) Validate() error

type PasswordHash

type PasswordHash []byte

func (PasswordHash) Compare

func (h PasswordHash) Compare(cmp string) error

func (PasswordHash) String

func (h PasswordHash) String() string

Jump to

Keyboard shortcuts

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