Documentation ¶
Index ¶
- Constants
- func AesCbcDecrypt(key, iv, src []byte) ([]byte, error)
- func AesCbcDecryptBase64(key, iv []byte, msg string) ([]byte, error)
- func AesCbcDecryptHex(key, iv []byte, msg string) ([]byte, error)
- func AesCbcEncrypt(key, iv, src []byte) ([]byte, error)
- func AesCbcEncryptBase64(key, iv, src []byte) (string, error)
- func AesCbcEncryptHex(key, iv, src []byte) (string, error)
- type AesCbc
Constants ¶
View Source
const ( // AesCbc128KeyLen key len: 16 AesCbc128KeyLen = 16 // AesCbc192KeyLen key len: 24 AesCbc192KeyLen = 24 // AesCbc256KeyLen key len: 32 AesCbc256KeyLen = 32 // IvLen iv len: 16 IvLen = 16 )
Variables ¶
This section is empty.
Functions ¶
func AesCbcDecrypt ¶
AesCbcDecrypt the ase cbc decrypt method
func AesCbcDecryptBase64 ¶
AesCbcDecryptBase64 decrypt base64 msg
func AesCbcDecryptHex ¶
AesCbcDecryptHex decrypt hex msg
func AesCbcEncrypt ¶
AesCbcEncrypt the aes cbc encrypt method
func AesCbcEncryptBase64 ¶
AesCbcEncryptBase64 return base64 result
func AesCbcEncryptHex ¶
AesCbcEncryptHex return hex result
Types ¶
type AesCbc ¶
type AesCbc struct {
// contains filtered or unexported fields
}
AesCbc the base aes cbc structure
func NewAesCbc ¶
NewAesCbc new aes cbc cipher aescbc support key len 16 24 32 match aescbc-128 aescbc-192 aescbc-256 iv len must be 16
Click to show internal directories.
Click to hide internal directories.