Skip to main content

Convert your Signal backup to pretty HTML

Project description

signal2html: Convert Signal backups to pretty HTML

build PyPI version Downloads

This is a Python script to convert a backup of Signal messages to pretty HTML:

Why?

My phone was getting full and I wanted to preserve my Signal messages in a nice way.

How?

  1. Install this package using pip:

    $ pip install signal2html
    
  2. Next, clone and compile signalbackup-tools as follows:

    $ git clone https://github.com/bepaald/signalbackup-tools
    $ cd signalbackup-tools
    $ bash BUILDSCRIPT.sh
    

    This should give you a signalbackup-tools executable script.

  3. Create an encrypted backup of your Signal messages in the app (Settings -> Chats and Media -> Create backup), and transfer this to your computer. Make sure to record the encryption password.

  4. Unpack your encrypted backup using signalbackup-tools as follows:

    $ mkdir signal-backup/
    $ signalbackup-tools signal-YYYY-MM-DD-HH-MM-SS.backup <PASS> --output signal_backup/
    

    where you replace signal-YYYY-MM-DD-HH-MM-SS.backup with the actual filename of your Signal backup and <PASS> with the 30-digit encryption password (without spaces).

  5. Now, run signal2html on the backup directory, as follows:

    $ signal2html -i signal_backup/ -o signal_html/
    

    This will create a HTML page for each of the message threads in the signal_html directory, which you can subsequently open in your browser.

Notes

This is a hastily-written script that has only been tested on a few Signal database versions. I hope it works on other backup versions as well, but if you encounter any issues please submit a pull request.

See the LICENSE file for licensing details and copyright.

Please be aware that Signal messages are encrypted for a reason, and your contacts may use it specifically because it provides significant privacy. By exporting and decrypting your messages, you should take responsibility for maintaining this same level of privacy (for instance by only storing the plaintext messages on encypted volumes/drives).

Originally written by Gertjan van den Burg. See the contributors file for a full list of all contributors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

signal2html-0.2.10.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

signal2html-0.2.10-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file signal2html-0.2.10.tar.gz.

File metadata

  • Download URL: signal2html-0.2.10.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.6

File hashes

Hashes for signal2html-0.2.10.tar.gz
Algorithm Hash digest
SHA256 64737088d35e34be6f0e4b531153ed33bccd335636deeefc3fbdf9be3d2a84bb
MD5 93064492f038068745a2f860eda83bf7
BLAKE2b-256 3d69a884cdc34f81ea59ec09aadbc08fa67d5014227e0c6f97662a8bbac23bb7

See more details on using hashes here.

File details

Details for the file signal2html-0.2.10-py3-none-any.whl.

File metadata

  • Download URL: signal2html-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.6

File hashes

Hashes for signal2html-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 eb71210523876a9f6043f83c57bbf4cb1350ce7c3fc76c6c5437f7bc8af91d58
MD5 547d212d35ae8fcf9c1f91689736c42b
BLAKE2b-256 e4c78ab78c07af81c321f8f3a2b4c4dc4657c02dfd8a9de033b7915555f322ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page