asn1.js icon indicating copy to clipboard operation
asn1.js copied to clipboard

BER support

Open indutny opened this issue 10 years ago • 3 comments

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.

indutny avatar Dec 01 '13 22:12 indutny

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.

mcavage avatar Dec 01 '13 23:12 mcavage

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 avatar Dec 01 '13 23:12 indutny

Thank you!

indutny avatar Dec 01 '13 23:12 indutny