Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
IDGeneratorFunc returns a randomly generated string useable as identifier
View Source
var PrincipalHashFunc = func(principal string) string { hasher, err := blake2b.New512(principalHashKey) if err != nil { panic(err) } _, err = hasher.Write([]byte(principal)) if err != nil { panic(err) } return base64.RawStdEncoding.EncodeToString(hasher.Sum(nil)) }
PrincipalHashFunc return the principal hashed using Blake2b keyed algorithm
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.