CrypticWizard.HexConverter 0.2.0

Prefix Reserved
dotnet add package CrypticWizard.HexConverter --version 0.2.0                
NuGet\Install-Package CrypticWizard.HexConverter -Version 0.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CrypticWizard.HexConverter" Version="0.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CrypticWizard.HexConverter --version 0.2.0                
#r "nuget: CrypticWizard.HexConverter, 0.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. 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.2.0

// Install CrypticWizard.HexConverter as a Cake Tool
#tool nuget:?package=CrypticWizard.HexConverter&version=0.2.0                

hex-converter

nuget

Description

  • A hex converter utility using dictionaries

Tests

.NET 6.0

.NET Core 3.1

Nuget Publish

Usage

Install Package

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

Include Package:

using CrypticWizard.HexConverter;

GetHexString( byte[] )

byte[] byteArray = { 42, 84, 255, 0 };
string hex = HexConverter.GetHexString(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.2.0

GetHexString( byte[] ) <-- GetHex( byte[] )

v0.1.1

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

Planned Features

Tools

License

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • net6.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.2.0 425 8/31/2022
0.1.1 317 10/12/2021

Updated to .NET 6.0