Adding function comment for lcrypto hashing
Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
This commit is contained in:
parent
6a949ae682
commit
91cfa901ca
@ -73,6 +73,7 @@ func (h *Hasher) HashStringWithSalt(in string, salt []byte) (string, error) {
|
||||
return h.Algo.EncodeHash(hash)
|
||||
}
|
||||
|
||||
// Generates a salt and hashes the given string with said salt
|
||||
func (h *Hasher) Hash(in string) ([]byte, error) {
|
||||
salt, err := GenerateRandomBytes(h.SaltLength)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user