This proposal advocates for the development of a web standard for externally-managed cryptographic keys, specifically designed to facilitate end-to-end encryption in web applications. For example, consider a web mail service using the following JavaScript to encrypt an email securely:
This example illustrates the use of getRemoteKey() to retrieve a cryptographic key handle, enabling secure operations while maintaining key privacy and security.
We envision this being an extension to Web Crypto.
Feedback
We welcome feedback and discussion related to this proposal. While this thread can be used for general discussion, please file specific issues against the explainer. For more detailed background, see the full Remote Cryptographic Keys Explainer.
I think there's a lot of open questions and things to work out / change, however:
The idea of out-of-process and optionally hardware backed keys that are origin bound and partioned seems to have a lot of promise.
If we can figure out consent and prevent phishing, some sort of way to "import" or access credentials stored on a 3P app (password manager, smart card, ...?) seems like it would have obvious use cases. However, there are a lot of open questions in this space. Some user flows may also be credential-type specific.
Therefore, I'd be happy to see this move to WICG to continue the conversation.
Introduction
This proposal advocates for the development of a web standard for externally-managed cryptographic keys, specifically designed to facilitate end-to-end encryption in web applications. For example, consider a web mail service using the following JavaScript to encrypt an email securely:
This example illustrates the use of getRemoteKey() to retrieve a cryptographic key handle, enabling secure operations while maintaining key privacy and security.
We envision this being an extension to Web Crypto.
Feedback
We welcome feedback and discussion related to this proposal. While this thread can be used for general discussion, please file specific issues against the explainer. For more detailed background, see the full Remote Cryptographic Keys Explainer.