MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / SHA1Digest

Function SHA1Digest

utils/crypto/hash.go:25–29  ·  view source on GitHub ↗
(v []byte)

Source from the content-addressed store, hash-verified

23}
24
25func SHA1Digest(v []byte) []byte {
26 h := sha1.New()
27 h.Write(v)
28 return h.Sum(make([]byte, 0, sha1.Size))
29}
30
31// form MiraiGo
32

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected