Hashing
This guide will show you how to work with hashes using our security package.
Hashing
value := []byte("my-value")
hashedValue, err := security.Hash(value)
Hashing with a Custom Cost
value := []byte("my-value")
hashedValue, err := security.HashWithCost(value, 12)
Verifying
value := []byte("my-value")
err := security.VerifyHash([]byte(hashedValue.Hash), value)