package
Version:
v0.0.0-...-9e1b7c1
Opens a new window with list of versions in this module.
Published: Dec 31, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func FormatHash(key, salt []byte) []byte
func GeneratePasswordAndHash() (password, hash string, err error)
func HashPassword(password, salt []byte) []byte
Validate a password hash string.
Format: "$<VERSION>$<SALT>$<KEY>"
where VERSION = 1, and SALT and KEY are base64 standard-encoded strings.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.