Decrypt db.crypt files

6

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

    
asked by anonymous 07.01.2015 / 15:27

1 answer

7

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

To decrypt you can use OpenSSL that is preinstalled on Linux, Windows can be downloaded here > .

To decrypt you can use the shell-script 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, in Github there is a project called whassup that does exactly what you want, in that < a href="https://github.com/jberkel/whassup/blob/master/library/src/main/java/com/github/jberkel/whassup/crypto/DBDecryptor.java"> page (< in> DBDecryptor.java ) you can see the routine responsible for encrypting and decrypting messages.

    
07.01.2015 / 15:35