Documentation ¶
Index ¶
- func Base64Decode(s string) ([]byte, error)
- func Base64Encode(src []byte) string
- func CheckRSAKey(pub []byte, pri []byte) bool
- func CreateDesKey() []byte
- func CreateRSAKeys() (pub []byte, pri []byte, err error)
- func MD5(data []byte) string
- func MD5String(data string) string
- func PKCS5Padding(cipherText []byte, blockSize int) []byte
- func PKCS5UnPadding(src []byte) []byte
- func RSADecrypt(priKey []byte, ciphertext []byte) ([]byte, error)
- func RSAEncryp(pubKey []byte, origData []byte) ([]byte, error)
- func TripleDesDecrypt(crypted, key []byte) ([]byte, error)
- func TripleDesEncrypt(origData, key []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func CheckRSAKey ¶
func CreateDesKey ¶
func CreateDesKey() []byte
func CreateRSAKeys ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.