diff --git a/DBus-service.md b/DBus-service.md index e45f727..e4d33a0 100644 --- a/DBus-service.md +++ b/DBus-service.md @@ -140,6 +140,13 @@ or, using Bash shell syntax: ``` echo "ixZI93QgqmjNpM8V+E0="|sed 's/_/\//g' | base64 -d |xxd -p -c1|while read i; do printf "%d " $((16#${i})); done|sed 's/ /,/g'|sed 's/,$/\n/g' ``` + +To reverse the process: + +``` +python3 -c 'import base64; print(base64.b64encode(bytearray([139,22,72,247,116,32,170,104,205,164,207,21,248,77])))' +``` + In the examples above, attachments are identified by the first `array:string:` argument (`dbus-send` arguments must be in the correct order). The last argument can either be a single `string:RECIPIENT` (as in the examples above) or an `array:string:RECIPIENT1,RECIPIENT2,...` (for `dbus-send`, an array argument consists of a comma-separated list). ### Receive messages from signal-cli daemon