generateKey method
JSPromise<JSAny?>
generateKey(
- AlgorithmIdentifier algorithm,
- bool extractable,
- 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,
);