basic

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Command{
	Category: "Crypto",
	Name:     "basic",
	Usage:    "Some basic encodings",
	Commands: []*cli.Command{

		bin2hexCmd, hex2binCmd,

		urlencodeCmd, urldecodeCmd,

		str2asciiCmd, ascii2strCmd,
		hex2strCmd, str2hexCmd,
		hex2decCmd, dec2hexCmd, hex2bytesCmd,
		bytes2hexCmd, bytes2strCmd,

		randStrCmd,
	},
}

Functions

func ASCIIToString

func ASCIIToString(s string) (string, error)

ASCIIToString ASCII -> 字符串

func BinToHex added in v0.1.3

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

BinToHex Bin -> Hex

func ByteStringToHex

func ByteStringToHex(s string) (string, error)

ByteStringToHex ByteString -> Hex

func ByteStringToString

func ByteStringToString(s string) (string, error)

ByteStringToString ByteString -> String

func DecToHex

func DecToHex(s string) (string, error)

DecToHex Dec -> Hex

func HexToBin added in v0.1.3

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

HexToBin Hex -> Bin

func HexToByteString

func HexToByteString(s string) (string, error)

HexToByteString Hex -> Bytes String

func HexToDec

func HexToDec(s string) (*big.Int, error)

HexToDec Hex -> Dec

func HexToDecStr added in v0.1.6

func HexToDecStr(s string) (string, error)

HexToDec Hex -> Dec String

func HexToString

func HexToString(s string) (string, error)

HexToString Hex -> String

func StringToASCII

func StringToASCII(s string) (string, error)

StringToASCII 字符串 -> ASCII

func StringToHex

func StringToHex(s string) (string, error)

StringToHex String -> Hex

func URLDecode

func URLDecode(s string) (string, error)

URLDecode -

func URLEncode

func URLEncode(s string, raw bool) (string, error)

URLEncode -

Types

This section is empty.

Jump to

Keyboard shortcuts

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