Modify your offline megolm key backups from shell
Project description
megolm_filter.py
Modify your offline megolm key backups from a shell.
The main use of megolm_filter 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 Element-based support for this, so this script can help in the meantime.
Install
pip install megolm_filter
Command Line Interface
usage: megolm_filter.py [-h] [-o OUTPUT] [--plain] [file] [room_id]
Operate on megolm session backups.
positional arguments:
file megolm session data
room_id Room id to filter (optional)
options:
-h, --help show this help message and exit
-o, --output OUTPUT Output to file
-p, --plain Returns the plain unencrypted content
You can filter your keys fairly easily running:
megolm_filter element-keys.txt '!room1:matrix.org' '!room2:matrix.org' ...
Copyright (C) 2019 Aleksa Sarai cyphar@cyphar.com
Copyright (C) 2025 Lain Iwakura lain@serialexperiments.club
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file megolm_filter-0.1.tar.gz.
File metadata
- Download URL: megolm_filter-0.1.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea24344c5b6beba0508188da536265ef9cdb9d28070e94f6e0d27d2f9c424cda
|
|
| MD5 |
c2dcbfbb699e6e9a7860b616e4dd08c4
|
|
| BLAKE2b-256 |
3aeadc9cad36cdbe5c16c776839398d37c7025645bc9d1c304943485b3e02039
|
File details
Details for the file megolm_filter-0.1-py3-none-any.whl.
File metadata
- Download URL: megolm_filter-0.1-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad69fd6e1ec83a8f1987e43eb66e0523fd692f93f4a952d5792d2f1d3389b087
|
|
| MD5 |
1f30907ad54e7f591d298b4bbe77173d
|
|
| BLAKE2b-256 |
4fc2b7f56ef9d541d39b3aeb8b0394154dd40a9b7cdcddad3b3355f883d1ee09
|