Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Which is the safest save code?!
- ---KenWei---
-
Scratcher
9 posts
Which is the safest save code?!
Im making a ScratchWorld 2.5D 0.0.3 game and i gonna use save code
Example The Generated World Code
2222322323322332233232233223222322222322321111111111111122262222232223
How to made it safe?
Encoding or divide the code
Encoding is more safe
And Divide is so simple
Use what
Example The Generated World Code
2222322323322332233232233223222322222322321111111111111122262222232223
How to made it safe?
Encoding or divide the code
Encoding is more safe
And Divide is so simple
Use what

- Thingied
-
Scratcher
1000+ posts
Which is the safest save code?!
What do you mean by “safe”? A save code is a save code so I don't really see what you mean.
- Yusei-Fudo
-
Scratcher
1000+ posts
Which is the safest save code?!
What do you mean by “safe”? A save code is a save code so I don't really see what you mean.
Maybe a not buggy one that works really well?
- ---KenWei---
-
Scratcher
9 posts
Which is the safest save code?!
What do you mean by “safe”? A save code is a save code so I don't really see what you mean.That “safe” code users can don't hack it… Because the 121322…. is costume number lol
Tell me use what? Encoding or dividing?!
- The_Imaginarium
-
Scratcher
1000+ posts
Which is the safest save code?!
Probably just using a list to convert each digit to another and use the list as key, and also encoding the player's username in it, so others can't share it.What do you mean by “safe”? A save code is a save code so I don't really see what you mean.That “safe” code users can don't hack it… Because the 121322…. is costume number lol
Tell me use what? Encoding or dividing?!
- deck26
-
Scratcher
1000+ posts
Which is the safest save code?!
Since you can look inside the project you can't really make a code that can't be cheated if someone wants to put in the effort. In my view they're only cheating themselves so why worry about it but you can at least make it so they have to put in some effort.
You can make something up for this though. Add characters, reverse the digits of numbers, split values up - eg 3512 may represent 77 and 15 (first and last digits reveresed and subtracted from 100, middle pair just reversed). You can also use a checksum - eg all digits add to a multiple of 9 so you add a digit to make that the case so if someone puts in a made up code it needs to obey that rule. BUT anyone can set variables to the values they want and run the script that produces the save code so it's still not doing much to stop people.
You can make something up for this though. Add characters, reverse the digits of numbers, split values up - eg 3512 may represent 77 and 15 (first and last digits reveresed and subtracted from 100, middle pair just reversed). You can also use a checksum - eg all digits add to a multiple of 9 so you add a digit to make that the case so if someone puts in a made up code it needs to obey that rule. BUT anyone can set variables to the values they want and run the script that produces the save code so it's still not doing much to stop people.
- ---KenWei---
-
Scratcher
9 posts
Which is the safest save code?!
Since you can look inside the project you can't really make a code that can't be cheated if someone wants to put in the effort. In my view they're only cheating themselves so why worry about it but you can at least make it so they have to put in some effort.Thanks The_Imaginarium and deck26 ok now i know how to protect it
You can make something up for this though. Add characters, reverse the digits of numbers, split values up - eg 3512 may represent 77 and 15 (first and last digits reveresed and subtracted from 100, middle pair just reversed). You can also use a checksum - eg all digits add to a multiple of 9 so you add a digit to make that the case so if someone puts in a made up code it needs to obey that rule. BUT anyone can set variables to the values they want and run the script that produces the save code so it's still not doing much to stop people.

- NG_Web
-
Scratcher
50 posts
Which is the safest save code?!
Rather than Encoding or Dividing, the best way is Encrypting or in simple words Encoding a specific text to unreadable language so that nobody can read it even if it gets hacked
- NG_Web
-
Scratcher
50 posts
Which is the safest save code?!
If I say my idea, you can convert some text like “Hello Scratch Cat” to some childish Unique ID like “comment.display.code/HelloScratchCat.unique.code/lol” not like that, anything you like. You can make it too short also, like - “HelloScratchCat.uc”! After making it into a unique code and then you have to encode it
- julians_silly
-
Scratcher
34 posts
Which is the safest save code?!
what about if you wanted to convert like “hello, how are you” —> 3676 —–> “hello, how are you”
and have anyone already done that
and have anyone already done that
- Discussion Forums
- » Help with Scripts
-
» Which is the safest save code?!