Documentation ¶
Overview ¶
AES-128-CBC
Index ¶
- Constants
- func CheckHMACSHA1(message, messageMAC, key []byte) bool
- func HMACSHA1(message, key []byte) string
- func MD5(b []byte) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7Unpadding(origData []byte) []byte
- func PswDecrypt(sKey, src string) string
- func PswEncrypt(sKey, src string) string
- func RandomBytes(count int) []byte
- func RandomInt(start, end int) int
- func RandomInt64(start, end int64) int64
- func RandomString(count int, set ...[]byte) string
- func RandomUUID() string
- func RsaDecryptByPri(pri_key_file string, ciphertext []byte) ([]byte, error)
- func RsaEncryptByPub(pub_key_file string, origData []byte) ([]byte, error)
- func SHA1(b []byte) string
- func TripleEcbDesDecrypt(crypted, key []byte) ([]byte, error)
- func TripleEcbDesEncrypt(origData, key []byte) ([]byte, error)
Constants ¶
View Source
const ( ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ALPHANUM = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ALPHASYM = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&*_+?-=" )
Variables ¶
This section is empty.
Functions ¶
func CheckHMACSHA1 ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func RandomInt64 ¶
func RandomUUID ¶
func RandomUUID() string
func RsaDecryptByPri ¶
私钥解密
func RsaEncryptByPub ¶
公钥加密
func TripleEcbDesDecrypt ¶
[golang ECB 3DES Decrypt]
func TripleEcbDesEncrypt ¶
[golang ECB 3DES Encrypt]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.