Documentation
¶
Index ¶
- func AesCBCDecrypt(key, iv, crypted []byte) ([]byte, error)
- func AesCBCEncrypt(key, iv, origData []byte) ([]byte, error)
- func Base64Decode(str string) ([]byte, error)
- func Base64Encode(data []byte) string
- func Bcrypt(password string, cost int) (string, error)
- func BcryptCheck(password, hash string) bool
- func HmacSha1(message, secret string) string
- func HmacSha256(message, secret string) string
- func MD5Encrypt(s string) 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 RsaDecrypt(privateKey []byte, ciphertext []byte) ([]byte, error)
- func RsaEncrypt(publicKey []byte, origData []byte) ([]byte, error)
- func RsaVerify(publicKey []byte, data []byte, sign string) error
- func Sha1(message string) string
- func Sha256(message string) string
- func TripleDesB64Decrypt(encrypt, key string) (result string, err error)
- func TripleDesB64Encrypt(data, key string) (result string, err error)
- func TripleDesDecrypt(crypted, key []byte) ([]byte, error)
- func TripleDesEncrypt(origData, key []byte) ([]byte, error)
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
func AesCBCEncrypt ¶
func Base64Decode ¶
func Base64Encode ¶
func BcryptCheck ¶
func HmacSha256 ¶
func MD5Encrypt ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func TripleDesB64Decrypt ¶
func TripleDesB64Encrypt ¶
func TripleDesDecrypt ¶
func TripleDesEncrypt ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.