@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/cloudflare.js
CHANGED
|
@@ -3838,7 +3838,12 @@ import hkdf from "futoin-hkdf";
|
|
|
3838
3838
|
import tweetnacl2 from "tweetnacl";
|
|
3839
3839
|
import { fromUint8Array as fromUint8Array4, toUint8Array as toUint8Array5 } from "js-base64";
|
|
3840
3840
|
var deriveKeyFromAg2Hash = async (pass, salt) => {
|
|
3841
|
-
const key = await getArgon2idHash(pass, salt
|
|
3841
|
+
const key = await getArgon2idHash(pass, salt, void 0, {
|
|
3842
|
+
t: 2,
|
|
3843
|
+
m: 4096,
|
|
3844
|
+
p: 8,
|
|
3845
|
+
dkLen: 32
|
|
3846
|
+
});
|
|
3842
3847
|
return hkdf(Buffer.from(key), tweetnacl2.secretbox.keyLength, {
|
|
3843
3848
|
info: Buffer.from("encryptionKey")
|
|
3844
3849
|
});
|