@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/index.js
CHANGED
|
@@ -3967,7 +3967,12 @@ import hkdf from "futoin-hkdf";
|
|
|
3967
3967
|
import tweetnacl2 from "tweetnacl";
|
|
3968
3968
|
import { fromUint8Array as fromUint8Array4, toUint8Array as toUint8Array7 } from "js-base64";
|
|
3969
3969
|
var deriveKeyFromAg2Hash = async (pass, salt) => {
|
|
3970
|
-
const key = await getArgon2idHash(pass, salt
|
|
3970
|
+
const key = await getArgon2idHash(pass, salt, void 0, {
|
|
3971
|
+
t: 2,
|
|
3972
|
+
m: 4096,
|
|
3973
|
+
p: 8,
|
|
3974
|
+
dkLen: 32
|
|
3975
|
+
});
|
|
3971
3976
|
return hkdf(Buffer.from(key), tweetnacl2.secretbox.keyLength, {
|
|
3972
3977
|
info: Buffer.from("encryptionKey")
|
|
3973
3978
|
});
|