Documentation
¶
Overview ¶
Package argon2 provides an easy-to-use wrapper around the argon2 crypto library.
Index ¶
Constants ¶
Variables ¶
View Source
var ( // ErrIncompatibleVersion is an incompatible version error. ErrIncompatibleVersion = errors.New("argon2: incompatible version") // ErrInvalidHash is an invalid hash error. ErrInvalidHash = errors.New("argon2: invalid hash") // ErrFailedVerify is a failed verification error. ErrFailedVerify = errors.New("argon2: failed verify") )
Functions ¶
func HashAndVerify ¶
HashAndVerify hashes the input using the argon2id algorithm, then verifies it.
Types ¶
type Password ¶
type Password []byte
Password .
func (Password) MarshalJSON ¶
MarshalJSON satisfies the json.Marshaler interface.
func (Password) UnmarshalJSON ¶
UnmarshalJSON satisfies the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.