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.type
CryptoKey.extractable
Boolean
indicating if the raw information may be exported to the application or not.CryptoKey.algorithm
CryptoKey.usages
This interface neither inherits, nor implements, any method.
Specification | Status | Comment |
---|---|---|
Web Cryptography API The definition of 'CryptoKey' in that specification. | Candidate Recommendation | Initial definition. |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 37 | (Yes) | 34 (34) | No support | ? | No support |
Feature | Android | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Basic support | 37 | 37 | (Yes) | 34.0 (34) | No support | ? | No support |
Crypto
and Crypto.subtle
.
© 2005–2017 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