MCPcopy
hub / github.com/ddworken/hishtory / UserId

Function UserId

client/data/data.go:76–78  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

74}
75
76func UserId(key string) string {
77 return base64.URLEncoding.EncodeToString(sha256hmac(key, KdfUserID))
78}
79
80func EncryptionKey(userSecret string) []byte {
81 return sha256hmac(userSecret, KdfEncryptionKey)

Callers 15

deleteHistoryEntryFunction · 0.92
ApiGetFunction · 0.92
ApiPostFunction · 0.92
ProcessDeletionRequestsFunction · 0.92
GetBannerFunction · 0.92
status.goFile · 0.92
install.goFile · 0.92
switchToOfflineFunction · 0.92

Calls 1

sha256hmacFunction · 0.85

Tested by 6

TestESubmitThenQueryFunction · 0.74
TestDeletionRequestsFunction · 0.74
TestLimitRegistrationsFunction · 0.74