Generate RSA keys using Web Crypto API ([MDN](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API)) and store them in LocalStorage ([MDN](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API)).
Generate RSA keys using Web Crypto API ([MDN](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API)) and store them in IndexedDB ([MDN](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)).
Local storage is not available in Web Workers (for example WebUSB API is supported in Chrome extension service workers), so IndexedDB is used instead.
-[Constructor](#constructor)
-[`generateKey`](#generatekey)
@@ -9,13 +11,11 @@ Generate RSA keys using Web Crypto API ([MDN](https://developer.mozilla.org/en-U
## Constructor
```ts
publicconstructor(localStorageKey="private-key");
publicconstructor();
```
Create a new instance of `AdbWebCredentialStore`.
The `localStorageKey` parameter specifies the key to use when reading and writing the private key in LocalStorage.
## `generateKey`
```ts
@@ -31,9 +31,9 @@ The returned `Uint8Array` is the private key in PKCS #8 format.