←back to thread

33 points thiagosf | 3 comments | | HN request time: 0s | source
1. Rhapso ◴[] No.41906366[source]
How are the public and private keys generated and stored?
replies(1): >>41907060 #
2. hesus_ruiz ◴[] No.41907060[source]
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.

replies(1): >>41908523 #
3. thiagosf ◴[] No.41908523[source]
I couldn't explain better, thank you !