Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenAtomFoundation/SmartIDE
/ createHash
Function
createHash
cli/pkg/aes/cbc.go:30–34 ·
view source on GitHub ↗
(key string)
Source
from the content-addressed store, hash-verified
28
)
29
30
func
createHash(key string) string {
31
hasher := md5.New()
32
hasher.Write([]byte(key))
33
return
hex.EncodeToString(hasher.Sum(nil))
34
}
35
36
// 加密
37
func
Encrypt(content string, key string) string {
Callers
2
encrypt
Function · 0.85
decrypt
Function · 0.85
Calls
1
Write
Method · 0.80
Tested by
no test coverage detected