Documentation
¶
Index ¶
- Constants
- 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)
Constants ¶
View Source
const ( // DECRYPT 解密模式 DECRYPT = 0 // ENCRYPT 加密模式 ENCRYPT = 1 )
Variables ¶
This section is empty.
Functions ¶
func AES_Decrypt_ECB ¶ added in v1.0.2
func AES_Encrypt_CBC ¶
func AES_Encrypt_ECB ¶ added in v1.0.2
func DecryptECB_Pad ¶
func Decrypt_ECB ¶
func EncryptECB_Pad ¶
func Encrypt_CBC ¶ added in v1.0.2
func Encrypt_ECB ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.