encryptx

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultKey = "=+?TxGukPbyw.&.P"

Variables

This section is empty.

Functions

func ASBytes

func ASBytes(src []byte, as bool) []byte

func DecryptAES

func DecryptAES(src, key []byte) ([]byte, error)

func DesCBCDecrypt

func DesCBCDecrypt(encryptData, key []byte) ([]byte, error)

DesCBCDecrypt 输入密文,得到明文

func DesCBCEncrypt

func DesCBCEncrypt(plainText, key []byte) ([]byte, error)

func EncryptAES

func EncryptAES(src, key []byte) ([]byte, error)

func MD5

func MD5(src string) string

func RandString

func RandString(length int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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