MCPcopy Index your code
hub / github.com/TruthHun/BookStack / trimSaltHash

Function trimSaltHash

utils/password.go:101–109  ·  view source on GitHub ↗
(hash string)

Source from the content-addressed store, hash-verified

99}
100
101func trimSaltHash(hash string) map[string]string {
102 str := strings.Split(hash, delimiter)
103 return map[string]string{
104 "salt_secret": str[0],
105 "interation_string": str[1],
106 "hash": str[2],
107 "salt": str[3],
108 }
109}
110func salt(secret string) (string, error) {
111
112 buf := make([]byte, saltSize, saltSize+md5.Size)

Callers 1

PasswordVerifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected