CrypticWizard.HexConverter 0.1.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package CrypticWizard.HexConverter --version 0.1.1                
NuGet\Install-Package CrypticWizard.HexConverter -Version 0.1.1                
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.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                
#r "nuget: CrypticWizard.HexConverter, 0.1.1"                
#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.1.1

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

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

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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.
  • 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.2.0 424 8/31/2022
0.1.1 316 10/12/2021

Initial Release