Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Des3Encoding ¶
type Des3Encoding struct {
// contains filtered or unexported fields
}
Des3Encoding 加解密
type RsaDecoder ¶
type RsaDecoder struct {
// contains filtered or unexported fields
}
RsaDecoder RSA 解密器
func NewRsaDecoder ¶
func NewRsaDecoder(privKey []byte) (*RsaDecoder, error)
NewRsaDecoder 新建 RSA 解密器
type RsaEncoder ¶
type RsaEncoder struct {
// contains filtered or unexported fields
}
RsaEncoder RSA 加密器
func NewRsaEncoder ¶
func NewRsaEncoder(publicKey []byte) (*RsaEncoder, error)
NewRsaEncoder 新建 RSA 加密器
type SignVerifier ¶
SignVerifier 验签
func NewHmacSignVerifier ¶
func NewHmacSignVerifier(appKey string) (SignVerifier, error)
NewHmacSignVerifier 新建 HMAC 验签
func NewRsaSignVerifier ¶
func NewRsaSignVerifier(publicKey, appKey string) (SignVerifier, error)
NewRsaSignVerifier 新建 RSA 签名验证
Click to show internal directories.
Click to hide internal directories.