On this page

C

CryptoKey

History
P

cryptoKey.algorithm

History

An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters.

Read-only.

P

cryptoKey.extractable

History
Type:boolean

When true, the CryptoKey can be extracted using either subtle.exportKey() or subtle.wrapKey().

Read-only.

P

cryptoKey.type

History
Type:string
One of 'secret', 'private', or 'public'.

A string identifying whether the key is a symmetric ('secret') or asymmetric ('private' or 'public') key.

P

cryptoKey.usages

History
Type:string[]

An array of strings identifying the operations for which the key may be used.

The possible usages are:

Valid key usages depend on the key algorithm (identified by cryptokey.algorithm.name). See Crypto operation APIs for the operations supported by each key algorithm.