Private
Readonly
accountPrivate
Readonly
basePrivate
Readonly
cryptoPrivate
requeststhe algorithm used by the key.
the options for the algorithm. The properties used depend on the algorithm given.
Optional
keyId: stringthe ID of the key. If not given, a random ID will be generated.
Check whether a key matches what we expect based on the key info
whether or not the key matches
the key to check
the key info
Get the key information for a given ID.
If the key was found, the return value is an array of the form [keyId, keyInfo]. Otherwise, null is returned. XXX: why is this an array when addKey returns an object?
Optional
keyId: null | stringPrivate
getCheck if a secret is stored on the server.
map of key name to key info the secret is encrypted with, or null if it is not present or not encrypted with a trusted key
the name of the secret
Request a secret from another device
the name of the secret to request
the devices to request the secret from
Store an encrypted secret on the server
The name of the secret
The secret contents.
Optional
keys: null | string[]The IDs of the keys to use to encrypt the secret or null/undefined to use the default key.
Generated using TypeDoc
Add a key for encrypting secrets.
Returns
An object with: keyId: {string} the ID of the key keyInfo: {object} details about the key (iv, mac, passphrase)