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

Function MD5Digest

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

Source from the content-addressed store, hash-verified

11)
12
13func MD5Digest(v []byte) []byte {
14 h := md5.New()
15 h.Write(v)
16 return h.Sum(make([]byte, 0, md5.Size))
17}
18
19func SHA256Digest(v []byte) []byte {
20 h := sha256.New()

Callers 7

highwayUploadMethod · 0.92
decodeLoginResponseMethod · 0.92
NewDeviceInfoFunction · 0.92
MarshalMethod · 0.92
UnmarshalSigInfoFunction · 0.92
T106Function · 0.92

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected