Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkWXEncryptor ¶
type WorkWXEncryptor struct {
// contains filtered or unexported fields
}
func NewWorkWXEncryptor ¶
func NewWorkWXEncryptor( encodingAESKey string, opts ...WorkWXEncryptorOption, ) (*WorkWXEncryptor, error)
func (*WorkWXEncryptor) Decrypt ¶
func (e *WorkWXEncryptor) Decrypt(base64Msg []byte) (WorkWXPayload, error)
func (*WorkWXEncryptor) Encrypt ¶
func (e *WorkWXEncryptor) Encrypt(payload *WorkWXPayload) (string, error)
type WorkWXEncryptorOption ¶
type WorkWXEncryptorOption interface {
// contains filtered or unexported methods
}
func WithEntropySource ¶
func WithEntropySource(e io.Reader) WorkWXEncryptorOption
type WorkWXPayload ¶
Click to show internal directories.
Click to hide internal directories.