Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenAtomFoundation/SmartIDE
/ Encrypt
Function
Encrypt
cli/pkg/aes/cbc.go:37–40 ·
view source on GitHub ↗
加密
(content string, key string)
Source
from the content-addressed store, hash-verified
35
36
// 加密
37
func
Encrypt(content string, key string) string {
38
bytes := encrypt([]byte(content), key)
39
return
string(bytes)
40
}
41
42
// 解密
43
func
Decrypt(content string, key string) string {
Callers
nothing calls this directly
Calls
1
encrypt
Function · 0.85
Tested by
no test coverage detected