Documentation
Vip 07

VIP-07 --- JavaScript Crypto Capability

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in RFC 2119 (opens in a new tab).

draft optional

v-language:javascript

capability:Crypto

required-capability:Async


1. Capability Description

The Crypto capability makes the functionality provided by the Web Crypto API (opens in a new tab) available.

The Async capability is REQUIRED for this capability to be available.

2. Available Symbols

The following table details what symbols are made available by this capability. Note the absence of the following symbols:

Symbol Name
crypto
Crypto
Crypto.subtle
CryptoKey
CryptoKey.type
CryptoKey.extractable
CryptoKey.algorithm
CryptoKey.usages
SubtleCrypto
SubtleCrypto.encrypt()
SubtleCrypto.decrypt()
SubtleCrypto.sign()
SubtleCrypto.verify()
SubtleCrypto.digest()
SubtleCrypto.generateKey()
SubtleCrypto.deriveKey()
SubtleCrypto.deriveBits()
SubtleCrypto.importKey()
SubtleCrypto.exportKey()
SubtleCrypto.wrapKey()
SubtleCrypto.unwrapKey()