Discover Packages
github.com/wikisophia/api/server
passwords
package
Version:
v0.0.0-...-6b2a69b
Opens a new window with list of versions in this module.
Published: Oct 11, 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.