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

Return value

  • 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.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support371234 No ? No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support3737 Yes34 ? No Yes

See also

Document Tags and Contributors

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