Here is how I hardened the browser runtime for a Zero-Knowledge, Non-Custodial FinTech trading terminal. 👇
Client-Side Envelope Encryption:
I derive a KEK from the user's password using PBKDF2-SHA256 (310,000 iterations). Then, a secure random 32-byte DEK (AES-256-GCM) encrypts the data.
The password NEVER touches the server, and the DEK has a strict 15-min TTL in RAM before a wipe.
Secure Enclave Anti-Export Guard:







