 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ImprisonedPride
Joined: 30 Apr 2008 Posts: 26
|
Posted: Wed May 14, 2008 3:59 am Post subject: File encryption... |
|
|
I have been scouring the search feature and I've yet to find a solution to this. Basically I have a program that will create a text file on the users pc with vital data (like character info) that I want the program to be able to read/write, but I don't want the player to be able to just open the file and change what they want. I have considered that to write or "save" the file, I could just rewrite the file in plain text, re-encrypt it, then save it over the old copy. Then I'd have to decrypt it every time it's read from the disk. This doesn't need to be over-complicated just something simple get my feet wet. Thanks.
I have tried this http://www.vttoth.com/encrypt.htm but it did not encrypt the numbers, which, concerning character stats, is a rather large issue. (However, this is as about as simple as I need it.) |
|
| Back to top |
|
 |
Z Gecko Guest
|
|
| Back to top |
|
 |
greynite
Joined: 17 May 2008 Posts: 11
|
Posted: Mon May 19, 2008 6:23 am Post subject: |
|
|
Another idea would be to base64 encode your file. Very simple (aka very low computing overhead) and would make seeking to specific location in your file quite feasible.
It won't be the biggest lock in the world, like most other locks it'll only keep the honest people honest. Making the save file overly secure will simply move the attack vector somewhere else (decompile, attach a debugger, write an AHK script )
Of course, if you really want an encryption routine it just so happens I've got one I really like....
Cheers,
Shawn |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|