Documentation ¶
Index ¶
- func AesCBCDecrypt(crypted, key, iv []byte) ([]byte, error)
- func AesCBCEncrypt(data, key, iv []byte) ([]byte, error)
- func AesECBDecrypt(text, key string) string
- func AesECBEncrypt(text, key string) string
- func AesMysqlDecrypt(text, key string) string
- func AesMysqlEncrypt(text, key string) string
- func Hash(str string, seed int) uint64
- func HmacSha256(src string, secret string) string
- func Md5(str string) string
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RsaPriDecrypt(text, key string) (string, error)
- func RsaPriEncrypt(text, key string) (string, error)
- func RsaPubDecrypt(text, key string) (string, error)
- func RsaPubEncrypt(text, key string) (string, error)
- func Sha1(str string) string
- func Sha256(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
AesCBCDecrypt ase-128-cbc 解密
func AesCBCEncrypt ¶
AesCBCEncrypt AES-128-CBC 加密
func AesMysqlDecrypt ¶
AesMysqlDecrypt 同 mysql aes_decrypt(unhex('text'), 'key')
func AesMysqlEncrypt ¶
AesMysqlEncrypt 同 mysql hex(aes_encrypt('text', 'key'))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.