Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This script can be used to modify your offline megolm key backups from a shell.
The main use of this is to filter what keys you'd like to share with another
user (let's say you have a 1:1 chat, and the other user lost all their keys and
you need to give them access without giving access to all of your rooms).
[There is currently no Riot-based tooling for this][riotweb-issue6454], so this
[There is currently no Element-based tooling for this][riotweb-issue6454], so this
script can help in the meantime.

I've tested the output and input format with my own room keys and it has worked
Expand All @@ -35,9 +35,9 @@ Using the above example, let's say we want to only get session keys of the room
`!foo:matrix.org`. You can do this fairly easily with [`jq`][jq]:

```bash
% megolm_backup.py --from riot-keys.py |
% megolm_backup.py --from element-keys.txt |
jq 'map(select(.room_id == "!foo:matrix.org"))' |
megolm_backup.py --into > new-riot-keys.txt
megolm_backup.py --into > new-element-keys.txt
```

You need to have PyCryptodome installed in order for this script to work.
Expand Down