password

package
v0.0.0-...-4d10510 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argon

func Argon(password string) (*argon2.Raw, error)

Argon accepts a password string and returns hash and salt byte slices, or an error.

func ArgonDecode

func ArgonDecode(digest []byte) (*argon2.Raw, error)

ArgonDecode attempts to decode the given byte slice into an argon raw struct.

func ArgonVerify

func ArgonVerify(password string, digest []byte) (bool, error)

ArgonVerify checks that the provided password matches the one used to create the provided digest, returns a bool and an error.

func Compare

func Compare(oldHash []byte, password string) bool

func GetHash

func GetHash(password string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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