Discover Packages
github.com/wikisophia/api-accounts/server
hash
package
Version:
v0.0.0-...-9d982d4
Opens a new window with list of versions in this module.
Published: Jun 6, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Hasher can hash and verify hashes of incoming strings.
Create these with the NewHasher() function
NewHasher makes a Hasher which runs Argon2 with the given params.
Hash hashes a string and returns the hashed value.
Matches returns true if the value matches the hash, and false otherwise.
An error will be thrown if the hash isn't formatted properly. This shouldn't happen with hashes generated
by the Hash() function
Source Files
¶
Click to show internal directories.
Click to hide internal directories.