Documentation ¶
Index ¶
- func RsaDecryptWithSha1Base64(encryptedData, privateKey string) (string, error)
- func RsaEncryptWithSha1Base64(originalData, publicKey string) (string, error)
- func RsaSignWithSha1Hex(data string, prvKey string) (string, error)
- func RsaVerySignWithSha1Base64(originalData, signData, pubKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaDecryptWithSha1Base64 ¶
RsaDecryptWithSha1Base64 (2)解密:对采用sha1算法加密后转base64格式的数据进行解密(私钥PKCS1格式)
func RsaEncryptWithSha1Base64 ¶
RsaEncryptWithSha1Base64 (1)加密:采用sha1算法加密后转base64格式
func RsaSignWithSha1Hex ¶
RsaSignWithSha1Hex (3)签名:采用sha1算法进行签名并输出为hex格式(私钥PKCS8格式)
func RsaVerySignWithSha1Base64 ¶
RsaVerySignWithSha1Base64 (4)验签:对采用sha1算法进行签名后转base64格式的数据进行验签
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.