CrypticWizard.HexConverter 0.1.1 Prefix Reserved

Install-Package CrypticWizard.HexConverter -Version 0.1.1
dotnet add package CrypticWizard.HexConverter --version 0.1.1
<PackageReference Include="CrypticWizard.HexConverter" Version="0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CrypticWizard.HexConverter --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CrypticWizard.HexConverter, 0.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CrypticWizard.HexConverter as a Cake Addin
#addin nuget:?package=CrypticWizard.HexConverter&version=0.1.1

// Install CrypticWizard.HexConverter as a Cake Tool
#tool nuget:?package=CrypticWizard.HexConverter&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

hex-converter

nuget

Description

  • A hex converter utility using dictionaries

Tests

.NET 5.0

.NET Core 3.1

Nuget Publish

Usage

Install Package

dotnet add package CrypticWizard.HexConverter
<PackageReference Include="CrypticWizard.HexConverter" Version="0.1.1"/>

GetHex( byte[] )

byte[] byteArray = { 42, 84, 255, 0 };
string hex = HexConverter.GetHex(byteArray);
"2A54FF00"

GetHexArray( byte[] )

byte[] byteArray = { 42, 84, 255, 0 };
string[] hexArray = HexConverter.GetHexArray(byteArray);
{ "2A", "54", "FF", "00" }

GetHexList( byte[] )

byte[] byteArray = { 42, 84, 255, 0 };
List<string> hexList = HexConverter.GetHexList(byteArray);
{ "2A", "54", "FF", "00" }

GetBytes ( string )

string hex = { "2A54FF00" };
byte[] bytes = HexConverter.GetBytes(hex);
{ 2A, 54, FF, 00 }

GetBytes ( string[] )

string[] hexArray = { "2A", "54", "FF", "00" };
byte[] bytes = HexConverter.GetBytes(hexArray);
{ 2A, 54, FF, 00 }

GetBytes ( List<string> )

List<string> hexList = new List<string> { "2A", "54", "FF", "00" };
byte[] bytes = HexConverter.GetBytes(hexList);
{ 2A, 54, FF, 00 }

Features

Recently Added

v0.1.1

GetHex( byte[] )
GetHexArray( byte[] )
GetHexList( byte[] )
GetBytes( string )
GetBytes( string[] )
GetBytes( List<string> )

Planned Features

Tools

License

  • .NETCoreApp 3.1

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.1 74 10/12/2021

Initial Release