MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / Decrypt

Function Decrypt

cli/pkg/aes/cbc.go:43–46  ·  view source on GitHub ↗

解密

(content string, key string)

Source from the content-addressed store, hash-verified

41
42// 解密
43func Decrypt(content string, key string) string {
44 bytes := decrypt([]byte(content), key)
45 return string(bytes)
46}
47
48func encrypt(data []byte, passphrase string) []byte {
49 block, _ := aes.NewCipher([]byte(createHash(passphrase)))

Callers

nothing calls this directly

Calls 1

decryptFunction · 0.85

Tested by

no test coverage detected