encoding

package
v1.0.5006 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(s string) ([]byte, error)

func Base64Encode

func Base64Encode(src []byte) string

func BytesPadding

func BytesPadding(text []byte, size int) []byte

func HexDecode

func HexDecode(s string) ([]byte, error)

func HexEncode

func HexEncode(src []byte) string

func HexPadding

func HexPadding(text string, size int) string

Types

type Encoding

type Encoding struct{}

*

  • 编码 *
  • @create 2022-4-17
  • @author deatil

func New added in v1.0.4031

func New() *Encoding

构造函数

func (*Encoding) Base64Decode

func (this *Encoding) Base64Decode(s string) ([]byte, error)

Base64 解码

func (*Encoding) Base64Encode

func (this *Encoding) Base64Encode(src []byte) string

Base64 编码

func (*Encoding) BytesPadding

func (this *Encoding) BytesPadding(text []byte, size int) []byte

BytesPadding

func (*Encoding) HexDecode

func (this *Encoding) HexDecode(s string) ([]byte, error)

Hex 解码

func (*Encoding) HexEncode

func (this *Encoding) HexEncode(src []byte) string

Hex 编码

func (*Encoding) HexPadding

func (this *Encoding) HexPadding(text string, size int) string

补码

Jump to

Keyboard shortcuts

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