Versions in this module Expand all Collapse all v1 v1.0.3 Apr 10, 2024 Changes in this version + const DECRYPT + const ENCRYPT + func AES_Decrypt_CBC(ciphertext, key []byte, iv []byte) ([]byte, error) + func AES_Decrypt_ECB(data, key string) (out string, err error) + func AES_Encrypt_CBC(data, key, iv string) (out string, err error) + func AES_Encrypt_ECB(data, key string) (out string, err error) + func Aes(data []byte, key []byte, flag int) ([]byte, error) + func DecryptECB_Pad(plain, key []byte) ([]byte, error) + func Decrypt_ECB(bytCipher, key []byte) ([]byte, error) + func EncryptECB_Pad(plain, key []byte) ([]byte, error) + func Encrypt_CBC(plantText, key []byte, iv []byte) ([]byte, error) + func Encrypt_ECB(plain, key []byte) ([]byte, error)