AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File encryption...

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ImprisonedPride



Joined: 30 Apr 2008
Posts: 26

PostPosted: Wed May 14, 2008 3:59 am    Post subject: File encryption... Reply with quote

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
View user's profile Send private message
Z Gecko
Guest





PostPosted: Wed May 14, 2008 4:13 am    Post subject: Reply with quote

there a lot examples on the forum, e.g.:
http://www.autohotkey.com/forum/topic28078.html&highlight=encrypt
http://www.autohotkey.com/forum/topic23719.html&highlight=encrypt
http://www.autohotkey.com/forum/topic28440.html&highlight=encrypt
http://www.autohotkey.com/forum/topic598.html&highlight=encrypt
http://www.autohotkey.com/forum/topic25346.html&highlight=encrypt

just chose one Smile
Back to top
greynite



Joined: 17 May 2008
Posts: 11

PostPosted: Mon May 19, 2008 6:23 am    Post subject: Reply with quote

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 Wink )

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group