xxtea

package
Version: v0.0.0-...-35c4b17 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: MIT Imports: 2 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, key []byte) []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) (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) (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) []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) string

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

func EncryptString

func EncryptString(str, key string) 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.

Source Files

Jump to

Keyboard shortcuts

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