So I am trying to encrypt data in my game, and I cant really find any tutorials on the internet that even begin to try and describe what you can do with starcode. I have been able to figure it out and get it working for the most part except for a couple small things. I am trying to encrypt using randomly generated data for each game based on numbers, by generating 2 random numbers at game start, 1 integer and 1 real. The integer number, points to a mathematic equation for the real number to pass through, also that formula becomes random when passed through. And then I use that number as an encryption key. This isn't the problem though, the problem is after the value get's encrypted, the bank file value becomes this number (and repeats depending on the hash size) until it get's to the real code, for example the stored data could return "!%44f;", but when I apply the random number encryption, it basically just throws the number in front, so it looks like this instead "14773.331514773.331514773.3315!%44f" clearly this is not right. However if I try and hash first and then apply my encryptions (I use several different encryptions) the data is not actually being saved into the bank file, and instead it acts as if the information is being overwritten each time thus defeating the purpose of trying to store data.
My question is how can I get the string value in my bank to be over 50 characters long and be completely encrypted (no repeating number/character sets in it?
Also other things to know, yes I do save the value of the randomly generated number for decryption and it does work I have tested it, the problem is that either I have a half way encrypted string that shows a pattern and also the key for 1 stage of decryption, and without it I fear the encryption is too weak because it only produces like a 4 - 8 character long string which just feels insecure.
I cant really make much sense of the example star code map because it's version 1.0 not 1.4 so it's not up to date, and it really only describes storing 1 value with 1 encryption and not 1 value encrypted multiple ways with different kinds of data.
Any help would be greatly appreciated, thanks in advance, and if you need visual I think it would just be easier to skype and use screen sharing, so send me a PM asking for my skype name or with yours so we can do a skype chat.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I am trying to encrypt data in my game, and I cant really find any tutorials on the internet that even begin to try and describe what you can do with starcode. I have been able to figure it out and get it working for the most part except for a couple small things. I am trying to encrypt using randomly generated data for each game based on numbers, by generating 2 random numbers at game start, 1 integer and 1 real. The integer number, points to a mathematic equation for the real number to pass through, also that formula becomes random when passed through. And then I use that number as an encryption key. This isn't the problem though, the problem is after the value get's encrypted, the bank file value becomes this number (and repeats depending on the hash size) until it get's to the real code, for example the stored data could return "!%44f;", but when I apply the random number encryption, it basically just throws the number in front, so it looks like this instead "14773.331514773.331514773.3315!%44f" clearly this is not right. However if I try and hash first and then apply my encryptions (I use several different encryptions) the data is not actually being saved into the bank file, and instead it acts as if the information is being overwritten each time thus defeating the purpose of trying to store data.
My question is how can I get the string value in my bank to be over 50 characters long and be completely encrypted (no repeating number/character sets in it?
Also other things to know, yes I do save the value of the randomly generated number for decryption and it does work I have tested it, the problem is that either I have a half way encrypted string that shows a pattern and also the key for 1 stage of decryption, and without it I fear the encryption is too weak because it only produces like a 4 - 8 character long string which just feels insecure.
I cant really make much sense of the example star code map because it's version 1.0 not 1.4 so it's not up to date, and it really only describes storing 1 value with 1 encryption and not 1 value encrypted multiple ways with different kinds of data.
Any help would be greatly appreciated, thanks in advance, and if you need visual I think it would just be easier to skype and use screen sharing, so send me a PM asking for my skype name or with yours so we can do a skype chat.