import pbkdf2 from 'pbkdf2' const AESKeyLength = 32 // bytes export async function createSymKeyFromPassword( password: string ): Promise { return pbkdf2.pbkdf2Sync( Buffer.from(password, 'utf-8'), '', 65356, AESKeyLength, 'sha256' ) }