@fileverse/api 0.0.16 → 0.0.17
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/dist/cloudflare.js +6 -1
- package/dist/cloudflare.js.map +1 -1
- package/dist/commands/index.js +6 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/commands/index.js
CHANGED
|
@@ -1561,7 +1561,12 @@ import hkdf from "futoin-hkdf";
|
|
|
1561
1561
|
import tweetnacl2 from "tweetnacl";
|
|
1562
1562
|
import { fromUint8Array as fromUint8Array4, toUint8Array as toUint8Array5 } from "js-base64";
|
|
1563
1563
|
var deriveKeyFromAg2Hash = async (pass, salt) => {
|
|
1564
|
-
const key = await getArgon2idHash(pass, salt
|
|
1564
|
+
const key = await getArgon2idHash(pass, salt, void 0, {
|
|
1565
|
+
t: 2,
|
|
1566
|
+
m: 4096,
|
|
1567
|
+
p: 8,
|
|
1568
|
+
dkLen: 32
|
|
1569
|
+
});
|
|
1565
1570
|
return hkdf(Buffer.from(key), tweetnacl2.secretbox.keyLength, {
|
|
1566
1571
|
info: Buffer.from("encryptionKey")
|
|
1567
1572
|
});
|