Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small wrapper around the argon2id class that appends the used parameters to the calculated hash. This makes it possible to change the parameters without effecting previously stored hashes.

Example:

opts := Options{
	Memory:   64 * 1024,
	Time:     1,
	Threads:  2,
	KeySize:  32,
	SaltSize: 10,
}

hash, _ := argon2.Hash(opts, []byte("password"))
ok, _ := argon2.Verify([]byte("password"), hash)
fmt.Println(hash, ok)

About

Small wrapper around Go's golang.org/x/crypto/argon2 implementation.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages