Menu
Open source

CryptoKeyPair

The CryptoKeyPair object represents an asymmetric key pair with public and private keys.

The generateKey method can be used to create CryptoKeyPair object for asymmetric algorithms such as ECDH or ECDSA.

Properties

PropertyTypeDescription
publicKeyCryptoKeyA public key.
privateKeyCryptoKeyA private key.