Documentation ¶
Index ¶
- func GenRsaKey(bits int) error
- func ParseRsaPrivateKey(pemstr string) (*rsa.PrivateKey, error)
- func ParseRsaPrivateKeyFromBase64(bytes string) (*rsa.PrivateKey, error)
- func ParseRsaPublicKey(pubPEMData string) (*rsa.PublicKey, error)
- func ParseRsaPublicKeyFromBase64(bytes string) (*rsa.PublicKey, error)
- func RsaCheckSign(paramStr, base64Sign string, key *rsa.PublicKey) error
- func RsaEncryptOutBase64(str string, key *rsa.PublicKey) (string, error)
- func RsaSignStringOutBase64(str string, key *rsa.PrivateKey) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRsaPrivateKey ¶
func ParseRsaPrivateKey(pemstr string) (*rsa.PrivateKey, error)
func ParseRsaPrivateKeyFromBase64 ¶
func ParseRsaPrivateKeyFromBase64(bytes string) (*rsa.PrivateKey, error)
func RsaCheckSign ¶
RsaCheckSign 验证
func RsaEncryptOutBase64 ¶
RsaEncryptOutBase64 对法人信息等敏感字段进行rsa加密
func RsaSignStringOutBase64 ¶
func RsaSignStringOutBase64(str string, key *rsa.PrivateKey) (string, error)
RsaSignStringOutBase64 签名
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.