Documentation ¶
Index ¶
- func Base64Decode(str string) (string, error)
- func Base64Encode(str string) string
- func CRC32(data string) uint32
- func ECCDecrypt(ct []byte, prk ecies.PrivateKey) ([]byte, error)
- func ECCEncrypt(pt []byte, puk ecies.PublicKey) ([]byte, error)
- func GenRsaKeyWithPKCS1(bits int) (pubkey, prikey string, err error)
- func GenerateECCKey()
- func HashMod(str string, mod int64) (ret int64)
- func HexDecodeStr(s string) (string, error)
- func HexEncodeStr(s string) string
- func MD5(s string) string
- func RsaDecryptPKCS1v15(privateKey string, ciphertext []byte) ([]byte, error)
- func RsaEncryptPKCS1v15(publicKey string, origData []byte) ([]byte, error)
- func RsaSignPKCS1v15WithSHA256(privateKey string, data []byte) ([]byte, error)
- func RsaVerfySignPKCS1v15WithSHA256(originalData, signData []byte, pubKey string) error
- func Sha1(s string) string
- func Sha256(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ECCDecrypt ¶
func ECCDecrypt(ct []byte, prk ecies.PrivateKey) ([]byte, error)
func GenRsaKeyWithPKCS1 ¶
GenRsaKeyWithPKCS1 RSA公钥私钥产生 PKCS1 公钥私钥 进行base64返回
func RsaDecryptPKCS1v15 ¶
RsaDecryptPKCS1v15 解密
func RsaEncryptPKCS1v15 ¶
RsaEncryptPKCS1v15 加密
func RsaSignPKCS1v15WithSHA256 ¶
签名 对采用sha256算法 RsaSignPKCS1v15WithSHA256
func RsaVerfySignPKCS1v15WithSHA256 ¶
验签:对采用sha256算法 RsaVerfySignPKCS1v15WithSHA256
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.