encrypt

package
v0.0.0-...-8e1814b Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AESKEY       = "welcome mshk top 32bytes32bytes!"
	JWTSecretKey = []byte("welcome mshk top")
)

Functions

func AesDecrypt

func AesDecrypt(cryted string, key string) (string, error)

AES 解密

func AesEncrypt

func AesEncrypt(orig string, key string) (string, error)

AES 加密

func JWTDecrypt

func JWTDecrypt(tokenString string) (jwt.MapClaims, error)

JWT 解密

func JWTEncrypt

func JWTEncrypt(mapClaims jwt.MapClaims) (string, error)

JWT 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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