helpers

package
v1.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 16 Imported by: 3

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