Discuss Scratch

NotKatsuro
New to Scratch
2 posts

Save code mechanic from Scratch Wikia

Hello! I wanted to ask you about one info in the scratch saving data Wiki (https://en.scratch-wiki.info/wiki/Saving_Data)

In the encryption section, at the bottom there's this info written: “Please do not use random numbers as proven in this”

I tried to check the linked project but it brings me to the main page of the wiki.

So I wanted to ask, what does it mean? Is it like “don't use random values while encoding” (the multiplying and dividing, or random numbers anywhere else?

If the first one, which numbers can I use? I would like to use a different number, longest one for the best encoding.

Thanks for any help.
-EmeraldThunder-
Scratcher
1000+ posts

Save code mechanic from Scratch Wikia

You can use any number as long as the decode script knows what it is. The danger of a random number is that the decode script will not know what number to use to preform the inverse operations.

Nothing here.
NotKatsuro
New to Scratch
2 posts

Save code mechanic from Scratch Wikia

-EmeraldThunder- wrote:

You can use any number as long as the decode script knows what it is. The danger of a random number is that the decode script will not know what number to use to preform the inverse operations.

But like, is there a limit on how big of a number I can use? Or can I just get a 11-digit random number and paste it in the encryption and decryption?
The_Imaginarium
Scratcher
1000+ posts

Save code mechanic from Scratch Wikia

NotKatsuro wrote:

-EmeraldThunder- wrote:

You can use any number as long as the decode script knows what it is. The danger of a random number is that the decode script will not know what number to use to preform the inverse operations.

But like, is there a limit on how big of a number I can use? Or can I just get a 11-digit random number and paste it in the encryption and decryption?
There is no “limit”
The number is there just to scramble the code to prevent the users from cheating by entering 999 as their coins or level. You want the number to remain constant so the computer know how to encode and decode it.

Powered by DjangoBB