Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
14
func
MD5Bytes(str string) []byte {
15
m := md5.New()
16
_, _ = m.Write([]byte(str))
17
return
m.Sum(nil)
18
}
Callers
3
Create
Method · 0.92
ValidateTOTP
Method · 0.92
MD5
Function · 0.85
Calls
1
Write
Method · 0.80
Tested by
no test coverage detected