chore: update to version 14.0.11 and align website URLs

This commit is contained in:
2026-01-11 11:34:13 +03:00
parent ef74383349
commit 19c8d69bd8
1499 changed files with 53633 additions and 89 deletions
+7
View File
@@ -0,0 +1,7 @@
interface Result {
password: Uint8Array;
rounds: number;
salt: Uint8Array;
}
export declare function pbkdf2Encode(passphrase?: string | Uint8Array, salt?: Uint8Array, rounds?: number, onlyJs?: boolean): Result;
export {};
+19
View File
@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pbkdf2Encode = pbkdf2Encode;
const pbkdf2_1 = require("@noble/hashes/pbkdf2");
const sha512_1 = require("@noble/hashes/sha512");
const util_1 = require("@pezkuwi/util");
const wasm_crypto_1 = require("@pezkuwi/wasm-crypto");
const asU8a_js_1 = require("../random/asU8a.js");
function pbkdf2Encode(passphrase, salt = (0, asU8a_js_1.randomAsU8a)(), rounds = 2048, onlyJs) {
const u8aPass = (0, util_1.u8aToU8a)(passphrase);
const u8aSalt = (0, util_1.u8aToU8a)(salt);
return {
password: !util_1.hasBigInt || (!onlyJs && (0, wasm_crypto_1.isReady)())
? (0, wasm_crypto_1.pbkdf2)(u8aPass, u8aSalt, rounds)
: (0, pbkdf2_1.pbkdf2)(sha512_1.sha512, u8aPass, u8aSalt, { c: rounds, dkLen: 64 }),
rounds,
salt
};
}
+1
View File
@@ -0,0 +1 @@
export { pbkdf2Encode } from './encode.js';
+5
View File
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pbkdf2Encode = void 0;
var encode_js_1 = require("./encode.js");
Object.defineProperty(exports, "pbkdf2Encode", { enumerable: true, get: function () { return encode_js_1.pbkdf2Encode; } });