password

package
v0.0.0-...-3f89699 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 2 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 {
	Plaintext *string
	Hash      []byte
}

func (*Password) ArgonMatches

func (p *Password) ArgonMatches() (bool, error)

ArgonMatches compares the existing hash with the newly hashed password to see if they match

func (*Password) ArgonSet

func (p *Password) ArgonSet(plaintextPassword string) error

ArgonSet encrypt and hashes the input password

Jump to

Keyboard shortcuts

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