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.
Candidate Recommendation Initial definition.

Browser compatibility

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 (Yes) 37 (Yes) 34.0 (34) No support ? No support

See also

Document Tags and Contributors

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