Documentation ¶
Overview ¶
Package codec contains some type conversion functions, e.g. Bytes to Base64
Index ¶
- func Base32ToBytes(input string) ([]byte, error)
- func Base64ToBigInt(input string) (*big.Int, error)
- func Base64ToBytes(input string) ([]byte, error)
- func Base64URLToBytes(input string) ([]byte, error)
- func HexToBigInt(input string) (*big.Int, error)
- func HexToBytes(input string) ([]byte, error)
- type ByteArray
- type HashType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base32ToBytes ¶
Base32ToBytes converts base32 string to byte array
func Base64ToBigInt ¶
Base64ToBigInt converts base64 string to big Int
func Base64ToBytes ¶
Base64ToBytes converts base64 string to byte array
func Base64URLToBytes ¶
Base64URLToBytes converts base64URL string to byte array
func HexToBigInt ¶
HexToBigInt converts hex string to big Int
func HexToBytes ¶
HexToBytes converts hex string to byte array
Types ¶
type ByteArray ¶
type ByteArray []byte
ByteArray defines a byte arry
func ToByteArray ¶
ToByteArray return the combined byte array for the input byte arrays.
Click to show internal directories.
Click to hide internal directories.