mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 09:57:50 +08:00
Implement security patches: CSP headers, console disabling, key rotation, clipboard security, network blocking, log cleanup, and PGP validation
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user