|
|
há 1 ano atrás | |
|---|---|---|
| .. | ||
| src | há 1 ano atrás | |
| CHANGELOG.json | há 1 ano atrás | |
| CHANGELOG.md | há 1 ano atrás | |
| README.md | há 1 ano atrás | |
| package.json | há 1 ano atrás | |
| tsconfig.json | há 1 ano atrás | |
@yume-chan/adb-credential-webGenerate RSA keys using Web Crypto API (MDN) and store them in LocalStorage (MDN).
generateKeyasync generateKey(): Promise<Uint8Array>
Generate a RSA private key and store it into LocalStorage.
Calling this method multiple times will overwrite the previous key.
The returned Uint8Array is the private key in PKCS #8 format.
iterateKeys*iterateKeys(): Generator<Uint8Array, void, void>
Return the stored RSA private key. (This implementation doesn't support storing multiple keys)