MCPcopy Create free account
hub / github.com/MertJSX/folderhost / Hash

Function Hash

utils/hash.go:7–9  ·  view source on GitHub ↗
(input []byte)

Source from the content-addressed store, hash-verified

5var ARGON2 = argon2.DefaultConfig()
6
7func Hash(input []byte) ([]byte, error) {
8 return ARGON2.HashEncoded(input)
9}
10func CompareHash(a []byte, b []byte) (bool, error) {
11 return argon2.VerifyEncoded(a, b)
12}

Callers 3

UpdateAdminFunction · 0.92
UpdateUserPasswordFunction · 0.92
CreateUserFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected