Gathering detailed insights and metrics for asn1
Gathering detailed insights and metrics for asn1
Gathering detailed insights and metrics for asn1
Gathering detailed insights and metrics for asn1
Contains parsers and serializers for ASN.1 (currently BER only)
npm install asn1
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
64 Stars
50 Commits
35 Forks
38 Watching
4 Branches
14 Contributors
Updated on 08 Oct 2024
Minified
Minified + Gzipped
AGS Script (59.79%)
JavaScript (29.34%)
Makefile (10.87%)
Cumulative downloads
Total Downloads
Last day
-8.2%
4,110,139
Compared to previous day
Last week
3.4%
25,335,497
Compared to previous week
Last month
23.6%
97,454,663
Compared to previous month
Last year
-7.5%
959,700,117
Compared to previous year
1
5
node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS. Currently BER encoding is supported; at some point I'll likely have to do DER.
Mostly, if you're actually needing to read and write ASN.1, you probably don't need this readme to explain what and why. If you have no idea what ASN.1 is, see A Layman's Guide to a Subset of ASN.1, BER, and DER.
The source is pretty much self-explanatory, and has read/write methods for the common types out there.
The following reads an ASN.1 sequence with a boolean.
var Ber = require('asn1').Ber;
var reader = new Ber.Reader(Buffer.from([0x30, 0x03, 0x01, 0x01, 0xff]));
reader.readSequence();
console.log('Sequence len: ' + reader.length);
if (reader.peek() === Ber.Boolean)
console.log(reader.readBoolean());
The following generates the same payload as above.
var Ber = require('asn1').Ber;
var writer = new Ber.Writer();
writer.startSequence();
writer.writeBoolean(true);
writer.endSequence();
console.log(writer.buffer);
npm install asn1
MIT.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 12/30 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More