Documentation ¶
Index ¶
- Constants
- func AesDecrypt(cipherData []byte, aesKey []byte) ([]byte, error)
- func AesEncrypt(plainData []byte, aesKey []byte) ([]byte, error)
- func Base64DecodeB2S(src []byte) string
- func Base64DecodeS2B(src string) (result []byte, err error)
- func Base64DecodeS2S(src string) (string, error)
- func Base64DecodeWithTable(src []byte, base64table string) (dst []byte, err error)
- func Base64EncodeB2B(src []byte) (result []byte)
- func Base64EncodeB2S(src []byte) string
- func Base64EncodeS2B(src string) (result []byte)
- func Base64EncodeS2S(src string) string
- func DesDecrypt(cipherData []byte, key []byte, vi []byte, padMode string) ([]byte, error)
- func DesEncrypt(plainData []byte, key []byte, vi []byte, padMode string) ([]byte, error)
- func HashHex(hashBytes []byte) string
- func HmacMd5(key, data []byte) []byte
- func HmacSha1(key, data []byte) []byte
- func HmacSha256(key, data []byte) []byte
- func Md5(srcBytes []byte) []byte
- func Md5Hex(src string) string
- func SHA1Default(s string) string
- type PKCS5
- type PKCS7
- type PKCSZero
- type Padding
Constants ¶
View Source
const PADDING_MODE_PKCS5 = "PKCS5"
View Source
const PADDING_MODE_PKCS7 = "PKCS7"
View Source
const PADDING_MODE_ZEROS = "ZEROS"
Variables ¶
This section is empty.
Functions ¶
func Base64DecodeB2S ¶
func Base64DecodeS2B ¶
func Base64DecodeWithTable ¶
base64 自定义码表解密返回byte
func Base64EncodeB2B ¶
func Base64EncodeB2S ¶
func Base64EncodeS2B ¶
func DesDecrypt ¶
func DesEncrypt ¶
func HmacSha256 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.