xxtea

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, key []byte, includeLength bool) []byte

Decrypt the data with key. data is the bytes to be decrypted. key is the decrypted key. It is the same as the encrypt key.

func DecryptString

func DecryptString(str, key string, includeLength bool) (string, error)

Decrypt the data with key. data is the string to be decrypted. key is the decrypted key. It is the same as the encrypt key.

func DecryptURLToStdString

func DecryptURLToStdString(str, key string, includeLength bool) (string, error)

Decrypt the URL string with key and convert the URL string to the origin string

func Encrypt

func Encrypt(data []byte, key []byte, includeLength bool) []byte

Encrypt the data with key. data is the bytes to be encrypted. key is the encrypt key. It is the same as the decrypt key.

func EncryptStdToURLString

func EncryptStdToURLString(str, key string, includeLength bool) string

Encrypt the string with key and convert the string to URL format

func EncryptString

func EncryptString(str, key string, includeLength bool) string

Encrypt the data with key. data is the string to be encrypted. key is the string of encrypt key.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL