encrypt

package
v0.0.0-...-4acbe92 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MulanPSL-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

View Source
const (
	KEY_STR = "ichub20240401"
)

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

Variables

This section is empty.

Functions

func LoadEncDec

func LoadEncDec() baseiface.ISingleton

Types

type EncDec

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

func FindBeanEncDec

func FindBeanEncDec() *EncDec

func NewEncDec

func NewEncDec() *EncDec

func (*EncDec) AesDec

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

func (*EncDec) AesDecBase64

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

func (*EncDec) AesEnc

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

func (*EncDec) AesEncBase64

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

func (*EncDec) DecBase64

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

func (*EncDec) EncBase64

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

func (*EncDec) Md5Encrypt

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

Jump to

Keyboard shortcuts

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