Documentation
¶
Index ¶
- type SimpleEncrypt
- func (s *SimpleEncrypt) Decode(data []byte)
- func (s *SimpleEncrypt) Decode4Hex(str string) string
- func (s *SimpleEncrypt) Decode4HexByCheck(str string) string
- func (s *SimpleEncrypt) DecodeByCheck(data []byte)
- func (s *SimpleEncrypt) DecodeString(str string) string
- func (s *SimpleEncrypt) DecodeStringByCheck(str string) string
- func (s *SimpleEncrypt) Encode(data []byte)
- func (s *SimpleEncrypt) Encode2Hex(str string) string
- func (s *SimpleEncrypt) Encode2HexByCheck(str string) string
- func (s *SimpleEncrypt) EncodeByCheck(data []byte)
- func (s *SimpleEncrypt) EncodeString(str string) string
- func (s *SimpleEncrypt) EncodeStringByCheck(str string) string
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) Decode4Hex ¶
func (s *SimpleEncrypt) Decode4Hex(str string) string
func (*SimpleEncrypt) Decode4HexByCheck ¶
func (s *SimpleEncrypt) Decode4HexByCheck(str string) string
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) 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
Click to show internal directories.
Click to hide internal directories.