Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with missing package and update documentation. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
39 changes: 31 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,40 @@ Full writeup is at: https://matt.sh/signal-backup

To backup your Signal Desktop database, run the following commands to:

- check out SCAB
- install Python requirements
- copy your Signal Desktop database (and attachments) into a new directory so nothing is read against your live Signal DB
- generate a single local HTML page web viewer for all your conversations
- Check out SCAB
- Install Python requirements
- Copy your Signal Desktop database (and attachments) into a new directory so nothing is read against your live Signal DB
- Generate a single local HTML page web viewer for all your conversations

```erlang
`pysqlcipher3` now has to be compiled from source:

```sh
git clone https://github.com/rigglemania/pysqlcipher3.git
```

# Linux:

```sh
sudo apt-get install libsqlcipher-dev
```

# Mac:

```sh
brew install sqlcipher
```

```sh
python3 setup.py build
python3 setup.py install
```

```sh
git clone https://github.com/mattsta/signal-backup
pip3 install -r requirements.txt
cd signal-backup
pip3 install -r requirements.txt
rsync -avz "/Users/$(whoami)/Library/Application Support/Signal" Signal-Archive
cd Signal-Archive
python3 ../scab.py
cd Signal-Archive/Signal
python3 ../../scab.py
open myConversations.html
```
9 changes: 5 additions & 4 deletions scab.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
# param binding doesn't work for pragmas, so use a direct string concat
for cursor in [c, c2]:
cursor.execute(f'PRAGMA KEY = "x\'{key}\'"')
cursor.execute(f'PRAGMA cipher_page_size = 1024')
cursor.execute(f'PRAGMA kdf_iter = 64000')
cursor.execute(f'PRAGMA cipher_hmac_algorithm = HMAC_SHA1')
cursor.execute(f'PRAGMA cipher_kdf_algorithm = PBKDF2_HMAC_SHA1')
# These break pysqlcipher3:
# cursor.execute(f'PRAGMA cipher_page_size = 1024')
# cursor.execute(f'PRAGMA kdf_iter = 64000')
# cursor.execute(f'PRAGMA cipher_hmac_algorithm = HMAC_SHA1')
# cursor.execute(f'PRAGMA cipher_kdf_algorithm = PBKDF2_HMAC_SHA1')

# Hold numeric user id to conversation/user names
conversations = {}
Expand Down