MCPcopy 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
30func createHash(key string) string {
31 hasher := md5.New()
32 hasher.Write([]byte(key))
33 return hex.EncodeToString(hasher.Sum(nil))
34}
35
36// 加密
37func Encrypt(content string, key string) string {

Callers 2

encryptFunction · 0.85
decryptFunction · 0.85

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected