Documentation ¶
Index ¶
- func CheckCrypto(eventType string) bool
- func CheckMirror(eventType string) bool
- func Decrypt(data []byte) []byte
- func DecryptDebug(data []byte) []byte
- func DecryptLicense(license string) string
- func Encrypt(data []byte) []byte
- func EncryptDebug(data []byte) []byte
- func Init(e bool, k string, m bool)
- func SetImpl(_impl Encryption)
- type EmptyEncryption
- func (e *EmptyEncryption) CheckCrypto(eventType string) bool
- func (e *EmptyEncryption) CheckMirror(eventType string) bool
- func (e *EmptyEncryption) Decrypt(data []byte) []byte
- func (e *EmptyEncryption) DecryptDebug(data []byte) []byte
- func (e *EmptyEncryption) DecryptLicense(license string) string
- func (e *EmptyEncryption) Encrypt(data []byte) []byte
- func (e *EmptyEncryption) EncryptDebug(data []byte) []byte
- func (*EmptyEncryption) Init(e bool, k string, m bool)
- type Encryption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMirror ¶
CheckMirror check if need to backup plaintext message events
func DecryptLicense ¶
func SetImpl ¶
func SetImpl(_impl Encryption)
Types ¶
type EmptyEncryption ¶
type EmptyEncryption struct { }
func (*EmptyEncryption) CheckCrypto ¶
func (e *EmptyEncryption) CheckCrypto(eventType string) bool
CheckCrypto check if need to use crypto
func (*EmptyEncryption) CheckMirror ¶
func (e *EmptyEncryption) CheckMirror(eventType string) bool
CheckMirror check if need to backup plaintext message events
func (*EmptyEncryption) Decrypt ¶
func (e *EmptyEncryption) Decrypt(data []byte) []byte
Decrypt decrypt []byte with key
func (*EmptyEncryption) DecryptDebug ¶
func (e *EmptyEncryption) DecryptDebug(data []byte) []byte
DecryptDebug decrypt data with key
func (*EmptyEncryption) DecryptLicense ¶
func (e *EmptyEncryption) DecryptLicense(license string) string
func (*EmptyEncryption) Encrypt ¶
func (e *EmptyEncryption) Encrypt(data []byte) []byte
Encrypt encrypt []byte with key
func (*EmptyEncryption) EncryptDebug ¶
func (e *EmptyEncryption) EncryptDebug(data []byte) []byte
EncryptDebug encrypt data with key
type Encryption ¶
Click to show internal directories.
Click to hide internal directories.