Skip to main content
Version: 2.3.0

CryptoKey

The CryptoKey interface represents a cryptographic key obtained from one of the SubtleCrypto method importKey().

Instance properties

  • type readonly

    • : The type of key the object represents. It may take one of the following values: "secret", "private" or "public".
  • extractable readonly

    • : A boolean value indicating whether or not the key may be extracted.
  • algorithm readonly

    • : An object describing the algorithm for which this key can be used and any associated extra parameters.
  • usages readonly

    • : An Array of strings, indicating what can be done with the key. Possible values for array elements are "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", and "unwrapKey".