w3c / webcrypto

The W3C Web Cryptography API
https://w3c.github.io/webcrypto/
Other
267 stars 56 forks source link

Persistent storage of key #331

Open nikosft opened 1 year ago

nikosft commented 1 year ago

Hi, Storing a key at the browser side it already a challenge (especially in webkit--see #245).

In our system in order to overcome this problem, we store the key in a password input field and then it is picked up by the browser's password manager. We then use a similar form to get it back (using browser's autocomplete and user input).

Based on that "trick" I was wondering if Web Crypto spec could pursuit a new "autocomplete" value (e.g., "cryptokey") akin to what WebAuthN is doing (see e.g., here). Then password managers could be leveraged to store private keys, just like the way they store passwords.