Documentation ¶
Index ¶
- func AesCBCDecrypt(encrypted []byte, key []byte) ([]byte, error)
- func AesCBCDecryptWithIV(encrypted []byte, key, iv []byte) ([]byte, error)
- func AesCBCEncrypt(src, key []byte) ([]byte, error)
- func AesCBCEncryptWithIV(src, key, iv []byte) ([]byte, error)
- func AesECBDecrypt(encrypted []byte, key []byte) ([]byte, error)
- func AesECBEncrypt(src, key []byte) ([]byte, error)
- func Decrypt(src string, key string) (msg string, err error)
- func Encrypt(msg string, key string) (string, error)
- func GenerateKey(key []byte, keylen int) (genKey []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecryptWithIV ¶
解密
func AesCBCEncrypt ¶
func GenerateKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.