Documentation
¶
Index ¶
- func DecryptWithPrivateKey(privateKey []byte, encryptData string) ([]byte, error)
- func EncryptWithPublicKey(publicKey []byte, bs string) (string, error)
- func RsaDecrypt(ciphertext []byte, filePth string) ([]byte, error)
- func RsaEncrypt(origData []byte, filePth string) ([]byte, error)
- func RsaSign(msg string) (string, error)
- func RsaVerify(msg string, _sign string) error
- func ThriDESDeCrypt(crypted, key []byte) []byte
- func ThriDESEnCrypt(origData, key []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptWithPrivateKey ¶
DecryptWithPrivateKey 私钥解密
func EncryptWithPublicKey ¶
EncryptWithPublicKey 公钥加密
func RsaEncrypt ¶
//////////////////////////////Rsa加解密算法/////////////////////
func ThriDESDeCrypt ¶
////////////////////////提供3Des加解密的方法/////////////////////////////////
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.