lapo-luchini / asn1js

JavaScript generic ASN.1 parser
ISC License
586 stars 161 forks source link

Question for C# version #58

Closed GuildOfCalamity closed 1 year ago

GuildOfCalamity commented 1 year ago

This isn't an issue per say, but I was wondering if anyone has converted this to C#

lapo-luchini commented 1 year ago

C# it's a very different language than JavaScript, I'm not sure a porting makes sense.

I'm not a C# dev myself, so I'm not sure, but I know at least Bouncy Castle includes a good ASN.1 parsing library used by them internally to do crypto stuff (almost all digital signature schemes use ASN.1 DER structures).

I know nothing about it, but I see that there is also official support from Microsoft.

Or are you asking more in the line of "a graphical/visual tree-based decoder" than a raw ASN.1 decoder?

PS: I'm closing as not a bug, but feel free to reply.

GuildOfCalamity commented 1 year ago

@lapo-luchini Thanks for the reply, I was able to convert the section I need into C# based on the original C version located here: https://www.cs.auckland.ac.nz/~pgut001/dumpasn1.c

I wish I could use supporting lib from MS (System.Formats.Asn1.dll)... but the back-end systems I work on are pre dotNET 5.0