Versions in this module Expand all Collapse all v0 v0.4.2 Nov 8, 2022 Changes in this version + 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)