MCPcopy Create free account
hub / github.com/gogs/gogs / MD5Bytes

Function MD5Bytes

internal/cryptoutil/md5.go:14–18  ·  view source on GitHub ↗

MD5Bytes encodes string to MD5 checksum.

(str string)

Source from the content-addressed store, hash-verified

12
13// MD5Bytes encodes string to MD5 checksum.
14func MD5Bytes(str string) []byte {
15 m := md5.New()
16 _, _ = m.Write([]byte(str))
17 return m.Sum(nil)
18}

Callers 3

CreateMethod · 0.92
ValidateTOTPMethod · 0.92
MD5Function · 0.85

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected