Static
_Static
EXCHANGE_Static
INFOStatic
TYPEStatic
WRITE_The machine-readable name for this keypair.
Decrypt the given message. Expects encrypted AES key + encrypted content.
Optional
keysize: string | CryptoKey | SymmKeyLengthOptional
_aesAlgorithm: stringDecrypt and return as string.
Optional
keysize: string | CryptoKey | SymmKeyLengthOptional
_aesAlgorithm: stringDelete the keys stored in indexedDB.
Encrypt content using hybrid encryption (RSA + AES).
Optional
recipient: string | CryptoKeyOptional
aesKeyOrInfo: string | Uint8Array<ArrayBufferLike> | CryptoKeyOptional
keysizeOrAesKey: string | Uint8Array<ArrayBufferLike> | CryptoKey | SymmKeyLengthOptional
keysize: SymmKeyLengthEncrypt and return as base64 string.
Optional
recipient: string | CryptoKeyOptional
aesKeyOrInfo: string | Uint8Array<ArrayBufferLike> | CryptoKeyOptional
keysizeOrAesKey: string | Uint8Array<ArrayBufferLike> | CryptoKey | SymmKeyLengthOptional
keysize: SymmKeyLengthGet the relevant AES key for RSA - decrypt the given encrypted key.
Optional
encryptedKey: null | string | CryptoKeyOptional
_info: null | stringReturn a 32-character, DNS friendly hash of the public signing key.
Save this keys instance to indexedDB
.
Optional
format: SupportedEncodingsOptional
format: SupportedEncodingsSerialize this keys instance. Will return an object of
{ DID, publicExchangeKey }, where DID is the public signature key,
and publicExchangeKey
is the encryption key, base64
encoded.
Optional
format: SupportedEncodingsStatic
_Static
_Static
createOptional
session: booleanStatic
deviceReturn a 32-character, DNS-friendly hash of the given DID.
A DID format string
32 character, base32 hash of the DID
Static
loadRestore some keys from indexedDB, or create a new keypair if it doesn't exist yet.
Strings to use as keys in indexedDB, and a session boolean, is this in memory only? Or can it be persisted.
The parent key. Doesn't implement the encrypt/sign functions.