indutny / asn1.js

ASN.1 Decoder/Encoder/DSL
MIT License
180 stars 66 forks source link

BER support #1

Open indutny opened 10 years ago

indutny commented 10 years ago

BER decoder and encoder needs to be implemented.


/cc @mcavage

Hey man, seen you work in https://github.com/mcavage/node-asn1. Please let me know if it may sound as an interesting idea for you, there're currently no npm module that does both BER and DER.

mcavage commented 10 years ago

Well, there's pretty much complete BER in there (I used it for ldapjs, and I think @wesolows used it for snmpjs). FWIW, a bunch of DER is actually just a subset of BER (i.e., all the stuff you need for parsing X.509/PKCS containers, IIRC, is covered by BER).

Anyway, I'm happy to contribute over all the stuff in node-asn1, if you want it and plan to make this the defacto asn.1 library for node.

indutny commented 10 years ago

Great! That's exactly what I was thinking about, creating defacto asn.1 library for node.

Please feel free to ask me any questions if you'll have them, all code is already prepared for another encoding support, you'll just need to copy der.js to ber.js in encoder/decoder folders.

indutny commented 10 years ago

Thank you!