Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fa640d7b77 | |||
| dd778848f9 |
11
README.md
11
README.md
@ -26,11 +26,14 @@ with nested structures.
|
||||
There are only 3 methods needed to support all of the X.509 schemas
|
||||
that most of us care about, and so that's all this library has:
|
||||
|
||||
```js
|
||||
ASN1(type, hex1, hex2, ...)
|
||||
ASN1.UInt(hex1, hex2, ...)
|
||||
ASN1.BitStr(hex1, hex2, ...)
|
||||
|
||||
* ASN1(type, hex1, hex2, ...)
|
||||
* ASN1.UInt(hex1, hex2, ...)
|
||||
* ASN1.BitStr(hex1, hex2, ...)
|
||||
* (helper) ASN1.numToHex(num)
|
||||
/*helper*/
|
||||
ASN1.numToHex(num)
|
||||
```
|
||||
|
||||
Most ASN.1 types follow the same rules:
|
||||
|
||||
|
||||
@ -65,3 +65,5 @@ ASN1.numToHex = function (d) {
|
||||
}
|
||||
return d;
|
||||
};
|
||||
|
||||
module.exports = ASN1;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "uasn1",
|
||||
"version": "0.7.0",
|
||||
"version": "0.7.1",
|
||||
"description": "An insanely minimal ASN.1 builder for X.509 common schemas, specifically SEC1/X9.62 PKCS#8, SPKI/PKIX, PKCS#1 and CSR.",
|
||||
"homepage": "https://git.coolaj86.com/coolaj86/uasn1.js",
|
||||
"main": "index.js",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user