MCPcopy Index your code
hub / github.com/coder/coder / HashSecret

Function HashSecret

coderd/provisionerkey/provisionerkey.go:46–48  ·  view source on GitHub ↗
(secret string)

Source from the content-addressed store, hash-verified

44}
45
46func HashSecret(secret string) []byte {
47 return apikey.HashSecret(secret)
48}
49
50func Compare(a []byte, b []byte) bool {
51 return subtle.ConstantTimeCompare(a, b) != 1

Callers 1

Calls 1

HashSecretFunction · 0.92

Tested by

no test coverage detected