4 ms·
Show HN: I created a web app to encrypt/decrypt messages using Web Crypto API
- random_kris 2y agoVery cool wanted to build something similar myself
- thiagosf 2y agoNice! You can check my source code and create your implementation! https://github.com/thiagosf/webcrypto-private-messages https://github.com/thiagosf/webcrypto-private-messages
- brody_slade_ai 2y ago[flagged]
- Rhapso 2y agoHow are the public and private keys generated and stored?
- hesus_ruiz 2y agoGeneration, signature, verification, and some more crypto operations are performed with the standard browser Crypto APIs (https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto 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.
- thiagosf 2y agoI couldn't explain better, thank you !
- yfw 2y agoI did this a while ago as well for rsa vs aes implementations. https://yifeiwu.github.io/subtlecrypto-demo/ https://yifeiwu.github.io/subtlecrypto-demo/
- thiagosf 2y agoThat's cool, thanks for sharing it.
- kristianr4s 2y agonice - have you considered using a websocket to push the message to the receiver instead of when the receiver posts a message back?
- thiagosf 2y agoGood one! I added some possible future improvements in the Readme.md, I'll add this one too. Thank you