CryptoKey - Web APIs | MDN
Instance properties
CryptoKey.typeRead only-
The type of key the object represents. It may take one of the following values:
"secret","private"or"public". CryptoKey.extractableRead only-
A boolean value indicating whether or not the key may be extracted using
SubtleCrypto.exportKey()orSubtleCrypto.wrapKey(). CryptoKey.algorithmRead only-
An object describing the algorithm for which this key can be used and any associated extra parameters.
CryptoKey.usagesRead only-
An
Arrayof strings, indicating what can be done with the key. Possible values for array elements are"encrypt","decrypt","sign","verify","deriveKey","deriveBits","wrapKey", and"unwrapKey".
Examples
The examples for SubtleCrypto methods often use CryptoKey objects. For example:
Specifications
| Specification |
|---|
| Web Cryptography Level 2 # cryptokey-interface |