SubtleCrypto.generateKey - Web documentation
method SubtleCrypto.generateKey
SubtleCrypto.generateKey(
extractable: boolean,
keyUsages: KeyUsage[],
): Promise<CryptoKeyPair>

Parameters

extractable: boolean
keyUsages: KeyUsage[]

Return Type

Promise<CryptoKeyPair>
SubtleCrypto.generateKey(
extractable: boolean,
keyUsages: KeyUsage[],
): Promise<CryptoKey>

Parameters

extractable: boolean
keyUsages: KeyUsage[]

Return Type

Promise<CryptoKey>
SubtleCrypto.generateKey(
extractable: boolean,
keyUsages: KeyUsage[],
): Promise<CryptoKeyPair | CryptoKey>

Parameters

extractable: boolean
keyUsages: KeyUsage[]

Return Type