Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

402 B
Raw Blame
import { generateInteractiveKeyAttributes as generate } from "./crypto";
import { RemoteKeyAttributes, type KeyAttributes } from "./user";

export const generateInteractiveKeyAttributes = async (
    password: string,
    keyAttributes: KeyAttributes,
    masterKey: string,
): Promise<KeyAttributes> =>
    RemoteKeyAttributes.parse(
        await generate(password, keyAttributes, masterKey),
    );