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.

Syntax

result = key.algorithm

Return value

  • result is an opaque object describing the algorithm the key relates to.

Specifications

Specification Status Comment
Web Cryptography API
The definition of 'CryptoKey.algorithm' in that specification.
Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 37Edge Full support 12Firefox Full support 34IE No support NoOpera ? Safari No support NoWebView Android Full support 37Chrome Android Full support 37Edge Mobile Full support YesFirefox Android Full support 34Opera Android ? Safari iOS No support NoSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: fscholz, erikadoyle, teoli
Last updated by: fscholz,