Documentation ¶
Index ¶
- func AesDecryptCBC(encrypted []byte, key []byte) (decrypted []byte, err error)
- func AesDecryptCFB(encrypted []byte, key []byte) (decrypted []byte)
- func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)
- func AesEncryptCBC(origData []byte, key []byte) (encrypted []byte)
- func AesEncryptCFB(origData []byte, key []byte) (encrypted []byte)
- func AesEncryptECB(origData []byte, key []byte) (encrypted []byte)
- func MakeMD5Str(val string) string
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) ([]byte, error)
- func SearchByteSliceIndex(bSrc []byte, b byte) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptCFB ¶
func AesDecryptECB ¶
func AesEncryptCBC ¶
=================== CBC ======================
func AesEncryptCFB ¶
=================== CFB ======================
func AesEncryptECB ¶
=================== ECB ======================
func MakeMD5Str ¶
func PKCS7Padding ¶ added in v1.1.3
PKCS7 填充模式
func PKCS7UnPadding ¶ added in v1.1.3
填充的反向操作,删除填充字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.