generateKey method

JSPromise<JSAny?> generateKey(
  1. AlgorithmIdentifier algorithm,
  2. bool extractable,
  3. JSArray<JSString> keyUsages
)

Use the generateKey() method of the SubtleCrypto interface to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).

Implementation

external JSPromise<JSAny?> generateKey(
  AlgorithmIdentifier algorithm,
  bool extractable,
  JSArray<JSString> keyUsages,
);