encrypt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleEncrypt

type SimpleEncrypt struct {
	Key string //加解密用到的key(加密key索引)+
}

* 加解密

数据结构
密文+sha32校验

func (*SimpleEncrypt) Decode

func (s *SimpleEncrypt) Decode(data []byte)

解密

func (*SimpleEncrypt) Decode4Hex

func (s *SimpleEncrypt) Decode4Hex(str string) string

func (*SimpleEncrypt) Decode4HexByCheck

func (s *SimpleEncrypt) Decode4HexByCheck(str string) string

func (*SimpleEncrypt) DecodeByCheck

func (s *SimpleEncrypt) DecodeByCheck(data []byte)

解密

func (*SimpleEncrypt) DecodeString

func (s *SimpleEncrypt) DecodeString(str string) string

解密String

func (*SimpleEncrypt) DecodeStringByCheck

func (s *SimpleEncrypt) DecodeStringByCheck(str string) string

解密String,ByCheck

func (*SimpleEncrypt) Encode

func (s *SimpleEncrypt) Encode(data []byte)

加密

func (*SimpleEncrypt) Encode2Hex

func (s *SimpleEncrypt) Encode2Hex(str string) string

func (*SimpleEncrypt) Encode2HexByCheck

func (s *SimpleEncrypt) Encode2HexByCheck(str string) string

func (*SimpleEncrypt) EncodeByCheck

func (s *SimpleEncrypt) EncodeByCheck(data []byte)

func (*SimpleEncrypt) EncodeString

func (s *SimpleEncrypt) EncodeString(str string) string

加密String

func (*SimpleEncrypt) EncodeStringByCheck

func (s *SimpleEncrypt) EncodeStringByCheck(str string) string

加密String,ByCheck

Jump to

Keyboard shortcuts

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