The CryptoKey.algorithm read-only property is an opaque value containing all the information about the algorithm related to the key.
Different implementations have different kind of opaque value for these: such an object can't be shared.
result = key.algorithm
result is an opaque object describing the algorithm the key relates to.| Specification | Status | Comment |
|---|---|---|
| Web Cryptography API The definition of 'CryptoKey.algorithm' in that specification. | Recommendation | Initial definition. |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 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 |
Crypto and Crypto.subtle.CryptoKey, the interface it belongs to.
© 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/algorithm