CryptoKeyPair

interface

interface CryptoKeyPair

The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm.

variable

var CryptoKeyPair: { … }

The constructor object for CryptoKeyPair.

CryptoKeyPair objects are returned by SubtleCrypto.generateKey for asymmetric algorithms and cannot be constructed directly, so calling the constructor throws.

Constructors

constructor

new CryptoKeyPair(): never

Properties

privateKey

privateKey: CryptoKey

publicKey

publicKey: CryptoKey

prototype

readonly prototype: CryptoKeyPair