Documentation
¶
Index ¶
- func AesDecrypt(data, key string) (string, error)
- func AseEncrypt(data, key string) (string, error)
- func Md5String(getString string) string
- func ParseRsaPrivateKey(privKeyStr string) (*rsa.PrivateKey, error)
- func ParseRsaPublicKey(pubKeyStr string) (*rsa.PublicKey, error)
- func RsaDecrypt(privateKey *rsa.PrivateKey, encryptedData []byte) ([]byte, error)
- func RsaEncrypt(publicKey *rsa.PublicKey, message []byte) ([]byte, error)
- func Sha1String(getString string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AseEncrypt ¶
func ParseRsaPrivateKey ¶ added in v0.1.4
func ParseRsaPrivateKey(privKeyStr string) (*rsa.PrivateKey, error)
解析私钥字符串
func ParseRsaPublicKey ¶ added in v0.1.4
与DadjinTool的PHP工具的RSA互通 解析公钥字符串
func RsaDecrypt ¶ added in v0.1.4
func RsaDecrypt(privateKey *rsa.PrivateKey, encryptedData []byte) ([]byte, error)
使用私钥解密数据
func RsaEncrypt ¶ added in v0.1.4
使用公钥加密数据
func Sha1String ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.