Asn1DecoderNet5 1.0.4

Suggested Alternatives

fASN1.NET

There is a newer version of this package available.
See the version list below for details.
dotnet add package Asn1DecoderNet5 --version 1.0.4                
NuGet\Install-Package Asn1DecoderNet5 -Version 1.0.4                
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="Asn1DecoderNet5" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Asn1DecoderNet5 --version 1.0.4                
#r "nuget: Asn1DecoderNet5, 1.0.4"                
#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 Asn1DecoderNet5 as a Cake Addin
#addin nuget:?package=Asn1DecoderNet5&version=1.0.4

// Install Asn1DecoderNet5 as a Cake Tool
#tool nuget:?package=Asn1DecoderNet5&version=1.0.4                

ASN1Decoder

This library aims to make decoding DER encoded data into ASN1 structure human readable easier. So, you pass in the data and the library returns you an object containing the whole ASN1 sequence and provides you a function that can convert this object into a pretty string.

How to use

  1. install the Nuget package (www.nuget.org/packages/Asn1DecoderNet5) or clone the repo, build the project and reference the library
  2. add using Asn1DecoderNet5; to your usings
  3. read a DER file bytes
  4. pass the bytes into Decoder.Decode method and save its output into a variable
  5. pass the variable into Decoder.TagToString method, specify the string to structurize the string (I reccomend " | ") and maximum length of one line
  6. enjoy the string (or an exception)

How to use in code

See www.github.com/AVVI94/ASN1Decoder/blob/main/Asn1Decoder.ConsoleDecoder/Program.cs

Output example

https://pastebin.com/0LVC0wKE

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Description changed