spd-lib 1.0.1 → 1.0.3
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/index.js +6 -2
- package/package.json +2 -3
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const fs = require('fs')
|
|
1
|
+
const fs = require('fs')
|
|
2
2
|
const zlib = require('zlib');
|
|
3
3
|
const sodium = require('libsodium-wrappers');
|
|
4
4
|
const crypto = require('crypto');
|
|
@@ -122,4 +122,8 @@ class SPD {
|
|
|
122
122
|
return { pqcKey: { publicKey: keyPair.publicKey, privateKey: keyPair.privateKey }, salt };
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
|
|
126
|
+
module.exports = {
|
|
127
|
+
SPD,
|
|
128
|
+
sodium,
|
|
129
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spd-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "SPD or Secure Packaged Data is a compress PQC protected file format to sotre sensitive data localy",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
"libsodium",
|
|
19
19
|
"zlib"
|
|
20
20
|
],
|
|
21
|
-
"type": "module",
|
|
22
21
|
"author": "ALS-OPSS",
|
|
23
22
|
"license": "ISC",
|
|
24
|
-
"
|
|
23
|
+
"devDependencies": {
|
|
25
24
|
"crypto": "^1.0.1",
|
|
26
25
|
"fs": "^0.0.1-security",
|
|
27
26
|
"libsodium-wrappers": "^0.7.13"
|