News for hackers. Stuff that matters.
Re:Show HN: I created a web app to encrypt/decrypt messages ... by Rhapso on Monday October 21, 2024 @01:34PM (#41906366)
How are the public and private keys generated and stored?
Re:Show HN: I created a web app to encrypt/decrypt messages ... by hesus_ruiz on Monday October 21, 2024 @02:41PM (#41907060)
Generation, signature, verification, and some more crypto operations are performed with the standard browser Crypto APIs (https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...).

Storage of the private key is another thing. For a web app it is difficult to acces a hardware-based storage system. So typically it is stored in Localstorage or IndexdedDB, encrypted using a user-provided password. It is possible (but very involved and I have not seen web apps using it) to use WebAuthn for that.

Re:Show HN: I created a web app to encrypt/decrypt messages ... by thiagosf on Monday October 21, 2024 @05:05PM (#41908523)
I couldn't explain better, thank you !