Hi,
EDIT : I now wrote my own encryption, it's in the code archives, here : http://www.blitzbasic.com/codearcs/codearcs.php?code=1264
I want to encrypt/decrypt my savegame files (created with a mix of writestring, writeint and writefloat). I tried using this :
http://www.blitzbasic.com/codearcs/codearcs.php?code=604
But it doesn't seem to work. I have three problems with it :
- The seed that is the encryption key is stored in the save-file, which is not very secure (that's not too bad, most users won't figure out how to decrypt it anyway)
- If a different computer uses the seeds differently, you can't exchange the savegame to that computer
- But the worst part : sometimes, when decrypting, only a part of the file gets decrypted, and the rest is still scrambled - so it doesn't read it correctly (I could upload some examples if necessary)
Does anyone have a fix for this, or an alternative? I could try making my own, but if anyone has something for this already, that would be easier, off course :)
Thanks.
EDIT : I now wrote my own encryption, it's in the code archives, here : http://www.blitzbasic.com/codearcs/codearcs.php?code=1264
I want to encrypt/decrypt my savegame files (created with a mix of writestring, writeint and writefloat). I tried using this :
http://www.blitzbasic.com/codearcs/codearcs.php?code=604
But it doesn't seem to work. I have three problems with it :
- The seed that is the encryption key is stored in the save-file, which is not very secure (that's not too bad, most users won't figure out how to decrypt it anyway)
- If a different computer uses the seeds differently, you can't exchange the savegame to that computer
- But the worst part : sometimes, when decrypting, only a part of the file gets decrypted, and the rest is still scrambled - so it doesn't read it correctly (I could upload some examples if necessary)
Does anyone have a fix for this, or an alternative? I could try making my own, but if anyone has something for this already, that would be easier, off course :)
Thanks.