utils

package
v0.0.0-...-bf36c84 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefulaKey = "inobotscriptencruptkey"

Functions

func Decrypt

func Decrypt(key string, val string) (string, error)

func DefukaDecrypt

func DefukaDecrypt(data string) (string, bool)

默认解密

func DefukaEncrypt

func DefukaEncrypt(data string) (string, bool)

默认加密

func Encrypt

func Encrypt(key string, val string) (string, error)

func Md5

func Md5(data string) string

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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