Versions in this module Expand all Collapse all v1 v1.0.1 Aug 22, 2024 Changes in this version + func BodyDecrypt(algorithm Algorithm, key, iv string, tags []string, respBody string) ([]byte, error) + func BodyEncrypt(algorithm Algorithm, key string, reqBody string) ([]byte, error) v1.0.0 Aug 31, 2023 Changes in this version + func Decrypt(algorithm Algorithm, key string, iv string, tags []string, ...) (map[string]string, error) + func DecryptData(algorithm Algorithm, key, ciphertext, iv, tag []byte) (plaintext []byte, err error) + func Encrypt(algorithm Algorithm, key string, args map[string]string) (string, error) + func EncryptData(algorithm Algorithm, key, plaintext, iv []byte) (ciphertext, tag []byte, err error) + func EncryptKey(algorithm Algorithm, key string) (string, error) + func GenerateIv(algorithm Algorithm) []byte + func GenerateKey(algorithm Algorithm) string + type Algorithm string + const AES256CBC + const SM4GCM + type Encryption struct + Algorithm string + CiphertextBlob string + EncryptList []string + Iv string + TagList []string