Show / Hide Table of Contents

Class HexEx

Cryptography utilities.

Inheritance
System.Object
HexEx
Namespace: Cobasoft
Assembly: Cobasoft.Log.dll
Syntax
public static class HexEx

Methods

FromHex(String)

Convert a string of hexadecimal digits into a byte array.

Declaration
public static byte[] FromHex(string message)
Parameters
Type Name Description
System.String message
Returns
Type Description
System.Byte[]

ToHex(Byte)

Declaration
public static char ToHex(byte b)
Parameters
Type Name Description
System.Byte b
Returns
Type Description
System.Char

ToHex(Byte[])

Convert a byte array into a readable string, using hexadecimal encoding.

Declaration
public static string ToHex(byte[] bytes)
Parameters
Type Name Description
System.Byte[] bytes
Returns
Type Description
System.String

ToHex(Int64, Int32)

Declaration
public static string ToHex(long n, int len)
Parameters
Type Name Description
System.Int64 n
System.Int32 len
Returns
Type Description
System.String
In This Article
Back to top Generated by DocFX