Window.crypto
The Window.crypto
read-only property returns the Crypto
object associated to the global object. This object allows web pages access to certain cryptographic related services.
Syntax
JavaScript
Copy Code
var cryptoObj = window.crypto || window.msCrypto; // for IE 11
Specifications
Specification | Status | Comment |
---|---|---|
Web Cryptography API The definition of 'Window.crypto' in that specification. |
Candidate Recommendation | Initial definition |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Edge | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 44 (Yes) | (Yes) | 6 ms | 20 | 19 | (Yes) |
Feature | Chrome for Android | Firefox Mobile | Firefox OS | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
See also
- The
Window
global object
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/window/crypto