Update tests and additional fixups.

This commit is contained in:
2024-11-06 11:32:35 +00:00
parent 66e08755c1
commit 7a53da6080
77 changed files with 745 additions and 30421 deletions
-12
View File
@@ -1,12 +0,0 @@
package objx
import (
"crypto/sha1"
"encoding/hex"
)
// HashWithKey hashes the specified string using the security key
func HashWithKey(data, key string) string {
d := sha1.Sum([]byte(data + ":" + key))
return hex.EncodeToString(d[:])
}