chao faf16d266e update | 6 ヶ月 前 | |
---|---|---|
.. | ||
src | 6 ヶ月 前 | |
CHANGELOG.json | 6 ヶ月 前 | |
CHANGELOG.md | 6 ヶ月 前 | |
README.md | 6 ヶ月 前 | |
package.json | 6 ヶ月 前 | |
tsconfig.json | 6 ヶ月 前 |
@yume-chan/adb-credential-web
Generate RSA keys using Web Crypto API (MDN) and store them in LocalStorage (MDN).
generateKey
async 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)