# Decrypt values

## Recommended Posts

Hi,

I just wonder if it's possible to know the algorithm used for encryption/decryption if we know the real value of some encrypted numbers like in my case I know that

1.545.691.265 = 0 Coins

1.545.691.300 = 37 Coins

1.545.691.494 = 487 Coins

etc..

##### Share on other sites

Maybe with gdb. Set write watchpoint on the value. Then you'll get an offset related to the encryption. Assuming game is lib file and not dll.

##### Share on other sites
15 minutes ago, NoFear said:

Maybe with gdb﻿﻿. Set write watchpoint on the value. Then you'll get an offset related to the encryption. Assuming game is lib file and not dll.

Thanks for the quick answer but can you tell me how to do that or give me some useful link(s) ?

##### Share on other sites

It's xor-encryption with the key "1 545 691 265" (equal to value with 0 coins).

1 545 691 265 xor 37 = 1 545 691 300

1 545 691 265 xor 487 = 1 545 691 494

Therefore, to get encrypted value Y that corresponds to real value X, you need to use the following formula:

Y = 1 545 691 265 xor X

This will work, if the key is constant. If it is not, you will first need to find it out to be able to calculate encrypted values.

##### Share on other sites

1.545.691.265 xor 0 = 1545691265

1.545.691.300﻿ xor 37﻿ = 1545691265

1.545.691.494 xor 487 = 1545691265

so it is simple xor with key = 1545691265

##### Share on other sites

I think iosgods has lldb debugging guide for ios.

It's not too different than Android. Lldb only supports x64 on Android. So you may want to do the equivalent with gdb.

3 minutes ago, CmP said:

It's xor-encryption with the key "1 545 691 265" (equal to value with 0 coins).

1 545 691 265 xor 37 = 1 545 691 300

1 545 691 265 xor 487 = 1 545 691 494

Therefore, to get encrypted value Y that corresponds to real value X, you need to use the following formula:

Y = 1 545 691 265 xor X

This will work, if the key is constant. If it is not, you will first need to find it out to be able to calculate encrypted values.

Heh, didn't even think to try that first

Edit:

For more complex Encryption, debugging could help.

##### Share on other sites
4 hours ago, NoFear said:

Maybe with gdb﻿. Set write watchpoint on the value. Then you'll get an offset related to the encryption. Assuming game is lib file and not dll.

gdb needs root?

##### Share on other sites
15 minutes ago, nalcwap said:

gdb needs root?

Yes.

##### Share on other sites
Just now, NoFear said:

Yes.

##### Share on other sites
1 hour ago, NoFear said:

Yes.

you know any ap android for debug without root?

##### Share on other sites
56 minutes ago, nalcwap said:

you know any ap android for debug without root?

I think if you use ida on pc. You can debug without root that way.

I just prefer gdb, for I don't need pc to do it.

## Create an account

Register a new account

• ### Similar Content

• By Karan312
👻MVVIP PUBLIC V2.lua
👻MVVIP PUBLIC V2(1).lua

• Hi guys I Just Made A Script !!

For example:
gg.searchNumber('5646868', gg.TYPE_FLOAT) <-- encrypted Script

And For Print:
gg.searchNumber('5646868', 16) <-- Print Value From Encrypted Script

It Almost Done I just need A Anti-Exit For It And It Will Released SOON!!!

If You Help Me Make Anti-Exit Then send it on comment Section Below

And Help Me To Ignore function"return"
Thank You

• Hello everyone! I searched on google, youtube, this forum. The results I got were NOT very promising. All I found was unluac, something about ss tool?, hooking script, loader script, source dumper, encrypter.. I am so sad about the fact there is not a single thread about introduction to decryption so I thought I *NEEDED* to make this thread so others can learn too.
First of all I have some questions:
1)How to determine the type of encryption used?
2)How to decrypt HEX, XOR encryption?
3)How to FULLY DECRYPT a script?
I'd be thankful if someone writes introduction on decryption of scripts, some people like @TopGEOYT can magically decrypt scripts. New people like me must be given some idea. @Enyby @NoFear @Backlift @Anonymous1000 @bukandewa [Don't bother replying if you are not gonna help]