Open seb3point0 opened 3 years ago
I had issues when using the version of SQLCipher that was included in my distribiution. I solved it by building SQLCipher from source. When looking at the source code for Signal I can't find any other changes.
Try with a more recent build of sqlcipher.
Thank you!
SQLite version 3.33.0 2020-08-14 13:23:32 (SQLCipher 4.4.2 community)
Enter ".help" for usage hints.
sqlite> PRAGMA key="x'fbbe15a2bc59d7cc7fbb21ee74a13a6e2f097d38fc6ee3b9b879b82325ae4542d46c339ae3c092e3e00aa2a74ec5cdcb'";
ok
sqlite> PRAGMA cipher_plaintext_header_size = 32;
sqlite> .tables
grdb_migrations
indexable_text
indexable_text_fts
indexable_text_fts_config
indexable_text_fts_data
indexable_text_fts_docsize
indexable_text_fts_idx
keyvalue
media_gallery_items
model_ExperienceUpgrade
model_IncomingGroupsV2MessageJob
model_InstalledSticker
model_KnownStickerPack
model_OWSDevice
model_OWSDisappearingMessagesConfiguration
model_OWSMessageContentJob
model_OWSReaction
model_OWSRecipientIdentity
model_OWSUserProfile
model_SSKJobRecord
model_SignalAccount
model_SignalRecipient
model_StickerPack
model_TSAttachment
model_TSInteraction
model_TSMention
model_TSThread
model_TestModel
pending_read_receipts
Previously I was using the version of sqlcipher
which comes in Ubuntu. I compiled from source and it worked. Getting here was a long journey, but I'm happy my messages and my data are finally free. I will write a blog post about this process.
For anyone looking for detailed a explanation on how to jailbreak iOS and extract Signal's encrypted database, I wrote this post.
I managed to extract the private key using
keychain_dumper
:Then ran sqlcipher.
However, this doesn't work. Note that I removed the
0x
from the beginning of the key – I also tried leaving it in. I also attempted opening the file withDB Browser for SQLite
for Mac, with which I was able to decrypt a Signal for Mac backup previously, but that did't work either.I wonder if this is an issue with the
sqlcipher
version or perhaps the key format. Any help would be appreciated.