Class Hex
- Namespace
- Org.BouncyCastle.Utilities.Encoders
- Assembly
- BouncyCastle.Cryptography.dll
Class to decode and encode Hex.
public sealed class Hex
- Inheritance
-
Hex
- Inherited Members
Methods
Decode(byte[])
public static byte[] Decode(byte[] data)
Parameters
databyte[]
Returns
- byte[]
Decode(string)
public static byte[] Decode(string data)
Parameters
datastring
Returns
- byte[]
Decode(string, Stream)
public static int Decode(string data, Stream outStream)
Parameters
Returns
DecodeStrict(string)
public static byte[] DecodeStrict(string str)
Parameters
strstring
Returns
- byte[]
DecodeStrict(string, int, int)
public static byte[] DecodeStrict(string str, int off, int len)
Parameters
Returns
- byte[]
Encode(byte[])
public static byte[] Encode(byte[] data)
Parameters
databyte[]
Returns
- byte[]
Encode(byte[], Stream)
public static int Encode(byte[] data, Stream outStream)
Parameters
Returns
Encode(byte[], int, int)
public static byte[] Encode(byte[] data, int off, int length)
Parameters
Returns
- byte[]
Encode(byte[], int, int, Stream)
public static int Encode(byte[] data, int off, int length, Stream outStream)
Parameters
Returns
ToHexString(byte[])
public static string ToHexString(byte[] data)
Parameters
databyte[]
Returns
ToHexString(byte[], bool)
public static string ToHexString(byte[] data, bool upperCase)
Parameters
Returns
ToHexString(byte[], int, int)
public static string ToHexString(byte[] data, int off, int length)
Parameters
Returns
ToHexString(byte[], int, int, bool)
public static string ToHexString(byte[] data, int off, int length, bool upperCase)
Parameters
Returns
ToHexString(ReadOnlyMemory<byte>, bool)
public static string ToHexString(ReadOnlyMemory<byte> data, bool upperCase = false)
Parameters
dataReadOnlyMemory<byte>upperCasebool