Documentation ¶
Index ¶
- func Base64Decode(s string) ([]byte, error)
- func Base64Encode(src []byte) string
- func BytesPadding(text []byte, size int) []byte
- func HexDecode(s string) ([]byte, error)
- func HexEncode(src []byte) string
- func HexPadding(text string, size int) string
- type Encoding
- func (this *Encoding) Base64Decode(s string) ([]byte, error)
- func (this *Encoding) Base64Encode(src []byte) string
- func (this *Encoding) BytesPadding(text []byte, size int) []byte
- func (this *Encoding) HexDecode(s string) ([]byte, error)
- func (this *Encoding) HexEncode(src []byte) string
- func (this *Encoding) HexPadding(text string, size int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func BytesPadding ¶
func HexPadding ¶
Types ¶
type Encoding ¶
type Encoding struct{}
*
- 编码 *
- @create 2022-4-17
- @author deatil
func (*Encoding) Base64Decode ¶
Base64 解码
func (*Encoding) BytesPadding ¶
BytesPadding
Click to show internal directories.
Click to hide internal directories.