hex

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package hex 提供常用16进制编解码方法

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(src []byte) ([]byte, error)

Decode 将16进制字节数组转换为字节数组

func DecodeHexStringToString

func DecodeHexStringToString(s string) string

DecodeHexStringToString 解码16进制字符串为明文字符串

func DecodeString

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

DecodeString 将16进制字符串解码为明文字节数组

func DecodeToString

func DecodeToString(src []byte) string

DecodeToString 解码16进字节数组为字符串

func Encode

func Encode(src []byte) []byte

Encode 将字节数组转换为16进制字节数组

func EncodeString

func EncodeString(s string) []byte

EncodeString 将明文字符串编码为16进制字节数组

func EncodeStringToHexString

func EncodeStringToHexString(s string) string

EncodeStringToHexString 编码明文字符串加密为16进制字符串

func EncodeToString

func EncodeToString(src []byte) string

EncodeToString 编码明文字节数组为16进制字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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