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

Function Sha1String

cryptorand/strings.go:123–125  ·  view source on GitHub ↗

Sha1String returns a 40-character hexadecimal string, which matches the length of a SHA-1 hash (160 bits).

()

Source from the content-addressed store, hash-verified

121// Sha1String returns a 40-character hexadecimal string, which matches
122// the length of a SHA-1 hash (160 bits).
123func Sha1String() (string, error) {
124 return StringCharset(Hex, 40)
125}

Callers 1

TestSha1StringFunction · 0.92

Calls 1

StringCharsetFunction · 0.85

Tested by 1

TestSha1StringFunction · 0.74