utils

package
v0.0.0-...-795d412 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Sep = "c7c53de5-c719-4c12-be88-c227a59b4286"
	Key = "fb9dce35-8190-4a88-a832-64a39b975ccf-ThisIsYourAESKey"
)

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(key, ciphertext []byte) []byte

func AESEncrypt

func AESEncrypt(key, plaintext []byte) []byte

func GenAESKey

func GenAESKey(seed string) []byte

generate AES key from any string

func MD5Sum

func MD5Sum(text string) string

MD5Sum calc md5 of a string

func RandStr

func RandStr(n 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