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.