Documentation
¶
Index ¶
- type Crypto
- func (*Crypto) MD5encode(s string) string
- func (crypt *Crypto) SetPrivateKey(privateKey string) *Crypto
- func (crypt *Crypto) SetPublicKey(pubKey string) *Crypto
- func (crypt *Crypto) SignUsingSha256WithRsa(data []byte) ([]byte, error)
- func (crypt *Crypto) VerifySignUsingSha256WithRsa(data, sign []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
type Crypto struct {
// contains filtered or unexported fields
}
Crypto 结构体
func (*Crypto) SetPrivateKey ¶
SetPrivateKey 设置私钥证书
func (*Crypto) SetPublicKey ¶
SetPublicKey 设置公钥证书
func (*Crypto) SignUsingSha256WithRsa ¶
SignUsingSha256WithRsa 使用sha256-rsa算法进行签名
func (*Crypto) VerifySignUsingSha256WithRsa ¶
VerifySignUsingSha256WithRsa 使用sha256-rsa算法进行签名验证
Click to show internal directories.
Click to hide internal directories.