encrypt

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const (
	KEY_STR = "ichub20240401"
)

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

Variables

View Source
var EncDecInst = NewEncDec()

Functions

func LoadEncDec added in v1.2.11

func LoadEncDec() baseiface.ISingleton

Types

type EncDec added in v1.0.4

type EncDec struct {
	basedto.BaseEntity
	// contains filtered or unexported fields
}

func FindBeanEncDec added in v1.2.11

func FindBeanEncDec() *EncDec

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