The CryptoKey interface represents a cryptographic key derived from a specific key algorithm.
A CryptoKey object can be obtained using SubtleCrypto.generateKey(), SubtleCrypto.deriveKey() or SubtleCrypto.importKey()
This interface doesn't inherit any property.
CryptoKey.typeCryptoKey.extractableBoolean indicating if the raw information may be exported to the application or not.CryptoKey.algorithmCryptoKey.usagesThis interface neither inherits, nor implements, any method.
| Specification | Status | Comment |
|---|---|---|
| Web Cryptography API The definition of 'CryptoKey' in that specification. | Recommendation | Initial definition. |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 37 | Yes | 34 | No | ? | No |
type |
37 | 12 | 34 | No | ? | No |
extractable |
37 | 12 | 34 | No | ? | No |
algorithm |
37 | 12 | 34 | No | ? | No |
usages |
37 | 12 | 34 | No | ? | No |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | 37 | 37 | Yes | 34 | ? | No | Yes |
type |
37 | 37 | Yes | 34 | ? | No | Yes |
extractable |
37 | 37 | Yes | 34 | ? | No | Yes |
algorithm |
37 | 37 | Yes | 34 | ? | No | Yes |
usages |
37 | 37 | Yes | 34 | ? | No | Yes |
Crypto and Crypto.subtle.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey