//#region src/derive-password/deriveKeysFromPassword.d.ts /** * Samples a salt * * @returns The salt */ declare function generateSalt(): Uint8Array; /** * Derives a symmetric key from a user's password with a randomly sampled salt * * @param password - The user's password * @returns The derived secret key and randomly sampled salt */ declare function getKeyFromPassword(password: string): Promise<{ key: Uint8Array; salt: Uint8Array; }>; /** * Derives a symmetric key from a user's password and salt * * @param password - The user's password * @param salt - The given salt * @returns The derived secret key */ declare function getKeyFromPasswordAndSalt(password: string, salt: Uint8Array): Promise; //#endregion export { generateSalt, getKeyFromPassword, getKeyFromPasswordAndSalt }; //# sourceMappingURL=derive-password.d.mts.map