xxtea

package
v0.0.0-...-c1e5b24 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SocketKey = []byte{102, 120, 22, 24, 88, 6, 119, 88}

Functions

func Decrypt

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

Decrypt 使用密钥解密数据。 data 是要解密的字节。 key 是解密密钥。它与加密密钥相同。

func Encrypt

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

Encrypt 使用密钥加密数据。 data 是要加密的字节。 key 是加密密钥。它与解密密钥相同。

func SDecrypt

func SDecrypt(data []byte) []byte

SDecrypt 使用密钥解密数据。 data 是要解密的字节。

func SEncrypt

func SEncrypt(data []byte) []byte

SEncrypt 使用密钥加密数据。 data 是要加密的字节。

Types

This section is empty.

Jump to

Keyboard shortcuts

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