Documentation ¶
Overview ¶
package pass provides password generation and verification using argon2id encoded passwords are stored in the format of: $<ARGON_ALGO (i'm using argon2id)>$<version>:$MEM,ITER,PAR:$<SALT>:$<KEY>
Index ¶
Constants ¶
View Source
const ( MEM = 64 * 1024 ITER = 1 PAR = 2 SLENGTH = 16 KLENGTH = 32 )
Hashing Parameter TODO: Parameterize this
Variables ¶
View Source
var ( ErrWrongHash = errors.New("error: incorrect hash format") ErrIncompatibleVersion = errors.New("error: incompatible version of argon algorithm") )
Functions ¶
func VerifyHash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.