Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

EDIT: Here is some more background. I am basically trying to reproduce this the method outlined here I have been able to hit everything up until the paragraph regarding the decrypting of the data file in the raw folder. That site pretty much outlines everything.

The file was encrypted using a random number via the java random number generator. The random number was generated via a seed (located in the manifest file). I tracked down the seed and built a random number generator. I fed it the seed which supplied me with the key for the encrypted file in the raw folder.

Now I am left with they key to an encrypted file, however I am unfamiliar with decrypting a file in this fashion. That is my question. In what way would one go about decrypting a file that was encrypted in this manner.

Is it done with a software tool, or can it be done via the linux terminal?


Unfortunately I am not that advanced in computer forensics (but you can tell I'm attempting to learn)

Here is the output of hexdump from the terminal.

0000000 5194 1748 f896 bd6c fdf9 0d72 617e 7714
0000010 2221 4b77 a96b d327 1e2a 67d7 6e91 1720

Here is what shows up when I open the file with a text editor.

share|improve this question

migrated from Mar 20 '12 at 22:06

This question came from our site for software developers, mathematicians and others interested in cryptography.

Your link describes how to generate the key (in broad terms), but it doesn't say what the encryption algorithm is. Without this crucial piece of information, we can't tell you how to decrypt it. – Gilles Mar 20 '12 at 21:51
Note that due to a bug in Android, it used to be the case that the seed given to the RNG was the only source of entropy. This has been fixed in later versions of Anroid. So if this code is using the Java API, it might be the case that it generated undecryptable cipher text on newer Android versions. – Maarten Bodewes Mar 20 '12 at 23:29
@owlstead The min sdk is 3 and the target sdk is version 8 for this application. – Morgoroth Mar 21 '12 at 13:51
up vote 2 down vote accepted

This should answer your question and how to reverse engineer it:

Basically; it was encrypted with AES 128 and points to a Chinese URL (

share|improve this answer
That's a really great analysis there. Thanks a lot for that direction. – Morgoroth Mar 21 '12 at 15:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.