Documentation
¶
Index ¶
- func AESDecryptByECB(text, key string) string
- func AESEncryptByECB(text, key string) string
- func EcbDecrypt(data, key []byte) []byte
- func EcbEncrypt(data, key []byte) []byte
- func Get16BitMD5(noSign string) string
- func HmacSha256(message string, secret string) string
- func MD5(noSign string) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5Unpadding(origData []byte) []byte
- func Sha256Sign(noSign string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecryptByECB ¶
func AESEncryptByECB ¶
AESEncryptByECB golang和Java中的AES模式不一样:java aes默认加密模式为ECB golang 默认的是CBC模式
func EcbDecrypt ¶
func EcbEncrypt ¶
func Get16BitMD5 ¶
func PKCS5Unpadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.