zcrypto

package
v1.9.15 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(key, iv, data string) string

Decode aes CBC 解密.iv可为空(从data里解出来,前16位)

func Decrypt

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

func Encode

func Encode(key, iv, data string) string

Encode aes CBC 加密.iv可为空(随机生成16位,并在返回的结果里合并到前面)

func Encrypt

func Encrypt(key, data string) []byte

func GetHash32

func GetHash32(content string) string

GetHash32 encrypts any type of variable using MD5 algorithms.

func Random

func Random(length int) []byte

ASCII :33 到 126

Types

This section is empty.

Jump to

Keyboard shortcuts

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