Documentation ¶
Index ¶
- func AESDecrypt(encrypted []byte, key []byte) (decrypted []byte)
- func AESEncrypt(src []byte, key []byte) (encrypted []byte)
- func AesDecrypt(cryted []byte, key string) []byte
- func AesEncrypt(orig []byte, key string) []byte
- func B64Bytes(b []byte) []byte
- func B64Str(b []byte) *string
- func EN(bts []byte) []byte
- func ExampleNewCFBDecrypter()
- func ExampleNewCFBEncrypter()
- func PKCS7Padding(ciphertext []byte, blocksize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func PaddingText1(str []byte, blockSize int) []byte
- func Sha1(b string) *string
- func TN(bts *[]byte) []byte
- func UnPaddingText1(str []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
func AesDecrypt ¶
func ExampleNewCFBEncrypter ¶
func ExampleNewCFBEncrypter()
func PKCS7Padding ¶
补码 AES加密数据块分组长度必须为128bit(byte[16]),密钥长度可以是128bit(byte[16])、192bit(byte[24])、256bit(byte[32])中的任意一个。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.