feat: Add initial Electron app structure with real-time chat, user authentication, and encrypted messaging.
This commit is contained in:
@@ -18,7 +18,7 @@ const Register = () => {
|
||||
|
||||
// 1. Generate Salt and Master Key (MK)
|
||||
const salt = await window.cryptoAPI.randomBytes(16);
|
||||
const mk = await window.cryptoAPI.randomBytes(16); // 128-bit MK
|
||||
const mk = await window.cryptoAPI.randomBytes(32); // 256-bit MK for AES-256
|
||||
|
||||
console.log('Generated Salt and MK');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user