Expand description
Encryption helpers used by the remote command for device-to-device notification relay.
Functionsยง
- decrypt_
bytes - Decrypt a base64 payload into bytes using the given code.
- encrypt_
bytes - Encrypt arbitrary bytes with the given code; returns a base64 payload string.
- generate_
remote_ code - Generate a random remote-watch code like
RM-a3f2b1c4d5e6f7a8b9. - generate_
share_ code - Generate a random share code like
SC-a3f2b1c4d5e6f7a8b9. - pull_
share - Pull {base_url, api_key} from the relay for
code. Deletes the entry on success. - push_
share - Push {base_url, api_key} to the relay under
code. TTL 10 minutes, one-time read. - validate_
remote_ code - Validate that a remote-watch code looks like what we generated.
- validate_
share_ code - Validate that a share code has the expected format.