Jump to content
  • 0

Decrypting known values


Question

Posted

The game I'm working with is Nonograms Katana.

I can find the location where the amounts for items are stored by using fuzzy search and I can copy those values to other items to set their value to the same amount so I assume they are all using the same encryption key/method.

What I'd like to do then is figure out how the encryption works to be able to set a value to a specific amount.

If I have the encrypted value of multiple amounts is there some way to work out what the encryption key or method is to be able to work out how to set the value to a specific amount?

Here is a list of different values I know the location of and what their data in memory is:

image.thumb.png.13592ad342db882c712d1c58e20f563a.png

how do I figure out what the encryption key is so I can set an items amount to 100 for example?

 

5 answers to this question

Recommended Posts

  • 0
Posted

You need to determine what algorithm is being used to enc. value. if it is XOR it will be easy

  • 0
Posted
5 minutes ago, MAARS said:

You need to determine what algorithm is being used to enc. value. if it is XOR it will be easy

OK, so what would the algorithm be based on the data I provided?

I tried doing some XOR calculations but I wasn't entirely sure how to reverse engineer what the key should be.

  • 0
Posted
1 hour ago, Bunta said:

OK, so what would the algorithm be based on the data I provided?

I tried doing some XOR calculations but I wasn't entirely sure how to reverse engineer what the key should be.

Simple XOR keys are easy to find

 

  • 0
Posted (edited)
35 minutes ago, MAARS said:

Simple XOR keys are easy to find

 

I've tried using encrypted search in GG but it can never find the value that way. The only way that works is using fuzzy search for changed/unchanged values.

I've also set the XOR key to the value to reverse it but when I reapply that key to a different value it doesn't work right.

The weird thing is, I can copy values in memory to different locations and it will set the in game amounts to the same, even though the same in game amounts will have different values in memory.

Yes I know that sounds weird, but if you check the table in the first post, my herbs had an amount of 2 that was stored in memory as a dword of 389482630. My cylinders also had an amount of 2 but was stored in memory as a dword of 389457448. However if I were to copy the dword from one to the other, the amount would still be 2.

Edited by Bunta

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.