helpers

package
v0.0.0-...-0c41aae Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(encrypted string, pwd string) (string, error)

func AesEncrypt

func AesEncrypt(plaintext string, pwd string) (string, error)

func BuildPwd

func BuildPwd(pwd string) []byte

func DecryptData

func DecryptData(context *gin.Context, hasSeed bool) string

func EncryptData

func EncryptData(context *gin.Context, hasSeed bool, sourceData interface{}) string

func HmacSha256

func HmacSha256(data []byte, secret []byte) []byte

Types

type BodyData

type BodyData struct {
	Data string `form:"data"`
}

Jump to

Keyboard shortcuts

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