Versions in this module Expand all Collapse all v1 v1.0.0 Jul 4, 2023 Changes in this version + type APICryptoTool struct + RSAPublicKey *rsa.PublicKey + SM2PublicKey *sm2.PublicKey + func NewAPICryptoTool(publicKey string, algorithm Algorithm, keyExpireTime int64) (*APICryptoTool, error) + func (tool *APICryptoTool) Decrypt(rspBody string, plaintextKey string) (string, error) + func (tool *APICryptoTool) Encrypt(reqBody string, fields []string) (string, string, error) + type Algorithm string + const AES256CBC + const SM4GCM + type Encryption struct + Algorithm string + CiphertextBlob string + EncryptList []string + Iv string + TagList []string