Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sha3Hasher ¶
type Sha3Hasher struct{}
func NewHasher ¶
func NewHasher() Sha3Hasher
func (Sha3Hasher) CreateHash ¶
func (s Sha3Hasher) CreateHash(secretKey string) (string, error)
CreateHash hashes secretKey using a random salt and SHA3/SHA512.
func (Sha3Hasher) VerifyHash ¶
func (s Sha3Hasher) VerifyHash(hash, secretKey string) error
VerifyHash compares a key with the hash, and will produce an error if the hash does not match or if the hash is not a valid SHA3 hash.
Click to show internal directories.
Click to hide internal directories.