encrypt

package
v1.0.202 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_STR = "ichub20240401"
)

https://www.lesscode.work/GoCMS/

Variables

View Source
var EncDecInst = NewEncDec()

Functions

This section is empty.

Types

type EncDec added in v1.0.4

type EncDec struct {
	// contains filtered or unexported fields
}

func NewEncDec added in v1.0.4

func NewEncDec() *EncDec

func (*EncDec) AesDec added in v1.0.4

func (this *EncDec) AesDec(text string, salt string) []byte

func (*EncDec) AesDecBase64 added in v1.0.4

func (this *EncDec) AesDecBase64(text string) string

func (*EncDec) AesEnc added in v1.0.4

func (this *EncDec) AesEnc(text string, salt string) []byte

func (*EncDec) AesEncBase64 added in v1.0.4

func (this *EncDec) AesEncBase64(text string) string

func (*EncDec) DecBase64 added in v1.0.4

func (this *EncDec) DecBase64(text string) string

func (*EncDec) EncBase64 added in v1.0.4

func (this *EncDec) EncBase64(text string) string

func (*EncDec) Md5Encrypt added in v1.0.4

func (this *EncDec) Md5Encrypt(text string) string

type IEncDec added in v1.0.4

type IEncDec interface {
	EncBase64(text string) string
	DecBase64(text string) string
}

Jump to

Keyboard shortcuts

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