You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-07 05:22:15 +03:00
Expose deriveKey from passphrase
This commit is contained in:
@@ -49,7 +49,7 @@ export async function keyFromPassphrase(password) {
|
|||||||
return { key, salt, iterations: DEFAULT_ITERATIONS };
|
return { key, salt, iterations: DEFAULT_ITERATIONS };
|
||||||
}
|
}
|
||||||
|
|
||||||
async function deriveKey(password, salt, iterations) {
|
export async function deriveKey(password, salt, iterations) {
|
||||||
const subtleCrypto = global.crypto.subtle;
|
const subtleCrypto = global.crypto.subtle;
|
||||||
const TextEncoder = global.TextEncoder;
|
const TextEncoder = global.TextEncoder;
|
||||||
if (!subtleCrypto || !TextEncoder) {
|
if (!subtleCrypto || !TextEncoder) {
|
||||||
|
|||||||
Reference in New Issue
Block a user