node-forge 0.8.5 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +6 -4
- package/dist/forge.all.min.js +1 -1
- package/dist/forge.min.js +1 -1
- package/lib/asn1-validator.js +91 -0
- package/lib/ed25519.js +79 -3
- package/lib/oids.js +7 -0
- package/lib/util.js +31 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
Forge ChangeLog
|
|
2
2
|
===============
|
|
3
3
|
|
|
4
|
+
## 0.9.0 - 2019-09-04
|
|
5
|
+
|
|
6
|
+
### Added
|
|
7
|
+
- Add ed25519.publicKeyFromAsn1 and ed25519.privateKeyFromAsn1 APIs.
|
|
8
|
+
- A few OIDs used in EV certs.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Improve ed25519 NativeBuffer check.
|
|
12
|
+
|
|
4
13
|
## 0.8.5 - 2019-06-18
|
|
5
14
|
|
|
6
15
|
### Fixed
|
package/README.md
CHANGED
|
@@ -1409,15 +1409,17 @@ var privateKeyInfo = pki.wrapRsaPrivateKey(rsaPrivateKey);
|
|
|
1409
1409
|
// convert a PKCS#8 ASN.1 PrivateKeyInfo to PEM
|
|
1410
1410
|
var pem = pki.privateKeyInfoToPem(privateKeyInfo);
|
|
1411
1411
|
|
|
1412
|
-
// encrypts a PrivateKeyInfo
|
|
1412
|
+
// encrypts a PrivateKeyInfo using a custom password and
|
|
1413
|
+
// outputs an EncryptedPrivateKeyInfo
|
|
1413
1414
|
var encryptedPrivateKeyInfo = pki.encryptPrivateKeyInfo(
|
|
1414
|
-
privateKeyInfo, '
|
|
1415
|
+
privateKeyInfo, 'myCustomPasswordHere', {
|
|
1415
1416
|
algorithm: 'aes256', // 'aes128', 'aes192', 'aes256', '3des'
|
|
1416
1417
|
});
|
|
1417
1418
|
|
|
1418
|
-
// decrypts an ASN.1 EncryptedPrivateKeyInfo
|
|
1419
|
+
// decrypts an ASN.1 EncryptedPrivateKeyInfo that was encrypted
|
|
1420
|
+
// with a custom password
|
|
1419
1421
|
var privateKeyInfo = pki.decryptPrivateKeyInfo(
|
|
1420
|
-
encryptedPrivateKeyInfo, '
|
|
1422
|
+
encryptedPrivateKeyInfo, 'myCustomPasswordHere');
|
|
1421
1423
|
|
|
1422
1424
|
// converts an EncryptedPrivateKeyInfo to PEM
|
|
1423
1425
|
var pem = pki.encryptedPrivateKeyToPem(encryptedPrivateKeyInfo);
|