Staredit Network > Forums > SC2 Assistance > Topic: Encrypted Banks!
Encrypted Banks!
Jan 5 2012, 1:55 am
By: Bolshevik09  

Jan 5 2012, 1:55 am Bolshevik09 Post #1



After browsing the internet, i came to the conclusion that -SC2 has no bulletproof way of coding banks so that they are hack proof-
After messing around for an hour, i created a solution that would take months to decode if determined!
Most maps save banks for multiplayer use and have important values that are hard earned and shouldn't be cheat able. With a bit of time, you can achieve this.
This method saves two bank files as followed:

Bank File A:
This file stores all of the players values in plain sight
Kills, deaths, xp, time played etc

Bank File B:
This file stores all of bank A's values but "coded"

THE METHOD:
When saving values to the banks, Save the values normally to Bank A
but when saving to Bank B, throw in a simple equation to change the value such as 3(X+45)
where the value has 45 added to it and multiplied by 3.
If you had 1 kill then the "coded value" would be 138
Now save 138 as a random key to Bank B.
Now when the map starts up, have it reverse the "coded value" and compare it to Bank A's value.
If they are different, then place the words "HACKED" on the screen and delete their Banks!
This way the hacker will have no idea how the map detected him and which value is "coded." would you?
Even if the hacker deleted Bank B, the values would be way off!
The reverse equation to this would be (X/3)-45

Now say the hacker catches on somehow and figures out the equation...
You can create a trigger that generates a new equation every time it saves by following:
A(X+B)+C
where the letters ABC can be random given integers. Set ABC = random integers 1-1000 and save ABC to Bank B discretely.
Make sure each value has its own unique equation to throw the hacker off.

And never forget to name your banks something unique so they don't get edited by another map
Hope this inspires somebody!



None.

Jan 5 2012, 2:58 am Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

The basic protection is the signature. It stops basic editing of values as different file content will result in a different hash value. I would use it as it is there.
Sadly there exists an easy way around that which I won't tell here.

Your approach of 2 banks is interesting as you need to modify 2 values for 1 information and each bank can have its own signature which raises the amount of work that needs to be done to cheat.

But it would be still possible to open your locked map to obtain the saving code. So there is no bulletproof way.

You could add 2 alphabets that change the values into a string with some chars. Starcode uses that to compress the amount saved, but it can be used to make stuff harder to decipher, too. In your version it's easy to tell which value has which meaning as the first bank didn't save encrypted values.

But in the end only online banks could prevent cheating.

I still need to write my own bank protection stuff, but storing stuff in multiple banks with different encryption methods seems good to me.

edit:
more stuff to consider:
- save player handle to check if a player gave the file to another person
- add a bank version information to be able to update your banks

Post has been edited 1 time(s), last time on Jan 5 2012, 3:03 am by Ahli.




Jan 5 2012, 9:36 pm Bolshevik09 Post #3



Quote from Ahli
But it would be still possible to open your locked map to obtain the saving code. So there is no bulletproof way.
Not if you are generating new equations. Unless they edited your map in all and removed the equations...

Quote from Ahli
In your version it's easy to tell which value has which meaning as the first bank didn't save encrypted values.
Well you could encrypt both. Or you could just write two values in the same bank and have them in different sections and have them compared.

Quote from Ahli
...storing stuff in multiple banks with different encryption methods seems good to me.
I am glad we are trying to eliminate the cheaters. Stay strong brothers!

Post has been edited 2 time(s), last time on Jan 5 2012, 9:45 pm by Bolshevik09.



None.

Jan 6 2012, 12:48 pm Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from Bolshevik09
Quote from Ahli
But it would be still possible to open your locked map to obtain the saving code. So there is no bulletproof way.
Not if you are generating new equations. Unless they edited your map in all and removed the equations...
I mean, if they get the loading code, they can figure out how to put the correct values into their banks.




Jul 14 2012, 7:08 pm Dabbu Post #5



Quote from Ahli
- save player handle to check if a player gave the file to another person

A related thought -- if a player is caught cheating in a game with other players, distribute that player's name to all player banks and make those players cross-auto-spread-update the cheater-list between games.
So even if the cheater hacks right later on, the name will be out. Then people who have not come in contact with that player (but with others who did) could be shown a message saying that person is a known cheater, maybe offer the option to boot.
This is a bit excessive though. Not very practical since the list may grow too big, especially when IT gets hacked.
Nearly useless if the hacker tests the hack solo, or has multiple accounts if the game does not support solo play.

I guess until banks can be saved on servers the best thing to do is make sure the role of the saved data can't overwhelm the game-play.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Vrael, Roy, NudeRaider