--- title: Crypto.subtle slug: Web/API/Crypto/subtle translation_of: Web/API/Crypto/subtle ---

{{APIRef("Web Crypto API")}}

Crypto.subtle 是一个只读属性,返回一个 {{domxref("SubtleCrypto")}} 对象允许做一个些加密操作。

语法

var crypto = crypto.subtle;

规范

Specification Status Comment
{{ SpecName('Web Crypto API', '#dfn-Crypto', 'Crypto.subtle') }} {{ Spec2('Web Crypto API') }} Initial definition.

浏览器支持

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{ CompatChrome(37) }} {{ CompatGeckoDesktop(34) }} {{ CompatNo() }} {{ CompatUnknown() }} {{ CompatNo }}
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} 37 {{ CompatGeckoMobile(34) }} {{ CompatNo }} {{ CompatUnknown() }} {{ CompatNo }}

另见