Window.crypto只读属性返回与全局对象关联的 Crypto
对象。 此对象允许网页访问某些加密相关服务。
语法
var cryptoObj = window.crypto || window.msCrypto; // for IE 11
规范
Specification | Status | Comment |
---|---|---|
Web Cryptography API Window.crypto |
Recommendation | Initial definition |
浏览器支持
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Edge | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 44 (Yes) | (Yes) | 11 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) |
另见
- The
Window
global object