KyrptLib

General

Banks are really cool, u can save game or save statistics. But the file is saved in you local folder:

C:\Users\[user name]\Documents\StarCraft II\Accounts/[random numbers]/Banks"

I want to secure this information and disallow player access this data, because it is cheat, if u can edit your save games. right?

We can transform almost anything to string and back. That is why, there are only functions for strings in my lib.

Detail

AES and Sha256 are encryption standard. I tried to implement them well. the string+random salt will be encrypted together, so the same values looks different, every time u save it. The Sha256 hash will be generated from string+salt. and if someone change the value, we will know it, because we compare the Sha256 hash of the decrypted data to old hash.

The result is just 2 functions for encrypt and decrypt. The Initialisation will be done automatically.

I like Feedback, pls do some comment. :D

Code

        Variable - Set input = "Ich bin-gluecklich"
        //notice that password has 16 chars
        Variable - Set password = "ICH23EDe3d7890hg"
        Variable - Set output = (<KryptCode> EncryptString(input,password))
        Variable - Set output = (<KryptCode> DecryptString(output,password))

Download


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    28519
  • Created
    Jan 7, 2011
  • Last Released File
    Jan 12, 2011
  • Total Downloads
    970
  • License

Categories

Members

Recent Files