Implement security patches: CSP headers, console disabling, key rotation, clipboard security, network blocking, log cleanup, and PGP validation

This commit is contained in:
LC mac
2026-02-12 02:24:06 +08:00
parent 20cf558e83
commit 6c6379fcd4
11 changed files with 3365 additions and 135 deletions

View File

@@ -202,7 +202,10 @@ export async function encryptToKrux(params: {
const kef = wrap(label, version, iterations, payload);
const kefBase43 = base43Encode(kef);
console.log('🔐 KEF Debug:', { label, iterations, version, length: kef.length, base43: kefBase43.slice(0, 50) });
// Debug logging disabled in production to prevent seed recovery via console history
if (import.meta.env.DEV) {
console.debug('KEF encryption completed', { version, iterations });
}
return { kefBase43, label, version, iterations };
}