This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
Draft
This page is not complete.
The Web Crypto API is an interface allowing a script to use cryptographic primitives in order to build systems using cryptography.
A fundamental feature of this API is to allow the manipulation and storage of private and secret keys without the underlying bits of the key to be available to JavaScript.
This interface allows script to access the following primitives:
Web Crypto API doesn't solve all cryptographic problem a Web site or an application may encounter:
Warning!
Some browsers implemented an interface called Crypto
without having it well defined or being cryptographically sound. In order to avoid confusion, methods and properties of this interface are gone in browsers implementing the Web Crypto API, and all Web Crypto API methods are available on a new interface: SubtleCrypto
. The Crypto.subtle
property gives access to an object implementing it.
The Web Crypto API can be used:
Specification | Status | Comment |
---|---|---|
Web Cryptography API | Candidate Recommendation | Initial definition |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API