Decrypt db.crypt files

Asked

Viewed 14,394 times

6

I wonder if there is any way to decrypt files with the extension db.crypt in general, on the Android platform and there is some API that does this work?

1 answer

7


According to this article the files with the extension .db.crypt use a 192 key bits AES, whose value is 346a23652a46392b4d73257c67317e352e3372482177652c.

To decrypt you can use Openssl which is pre-installed on Linux, Windows can be downloaded here.

To decrypt you can use the shell-script down below.

#!/bin/sh
openssl enc -d -aes-192-ecb \
    -in "$1" -out "$2" \
    -K 346a23652a46392b4d73257c67317e352e3372482177652c

To use it just call:

~$ NomeDoScript.sh msgstore.db.crypt msgstore.db

Returning to the subject of the question, on Github there is a project called whassup who does exactly what you want in this page(Dbdecryptor.java) you can see the routine responsible for encrypting and decrypting messages.

  • Qmechanic, but then DB is not encrypted

  • I get it, in case I don’t need to use Shell-Script, I can use the guy’s class as a basis, right?

  • @Danilooliveira Correct. I posted the script only to complement the response.

  • 1

    Thank you very much!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.