Adding function comment for lcrypto hashing

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
This commit is contained in:
Ethan Wellenreiter 2025-05-10 01:31:13 -04:00
parent 6a949ae682
commit 91cfa901ca

View File

@ -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 {