This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-16 01:39:37

thescratchytim
Scratcher
Registered: 2010-09-10
Posts: 25

Script encryption or script obfuscation?

So what I'm trying to make is a chartroom program, which includes admins and moderators, so I'm just wondering if I could obfuscate or encrypt the code to stop people making bad changes to the script, like being able to delete others messages, so that there is a password required to modify list contents. Is it possible to do this? If so how and if not are there any supported modifications/tools for this? Please answer (this project is for 2.0).


Hello! I'm thescratchytim!  Check out my projects here. Scratch on!
Status: http://blocks.scratchr.org/API.php?user=thescratchytim&action=onlineStatus&type=circle • Also, this project seems to be my most successful. I don't know why  tongue

Offline

 

#2 2012-10-16 02:11:51

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Script encryption or script obfuscation?

Only you will be able to manually modify the cloud data of your project. When someone decides to "look inside" your project and modify the scripts, it's only altered on their side and it won't actually modify the cloud data for your project. So there isn't any need to obfuscate the scripts.  smile

Offline

 

#3 2012-10-16 06:01:56

thescratchytim
Scratcher
Registered: 2010-09-10
Posts: 25

Re: Script encryption or script obfuscation?

Ok, thanks. I didn't really see the alpha for 2.0 so I'm not so sure about 2.0. Is it possible to create and save data, like a game, for a client? Like a scratcher wants to make an account, so that every time he/she views the project? And most interesting would be to keep a project, but update it so it's the same project but updated like remix but keep the project? Do we have to do a deletion? Is it possible to do it online too? Like:

create new variable <join [data ](displayname)> //or even better:
create new list <join [data of ](displayname)> //a list containing data of the scratcher
encrypt [list v] <join [data of](displayname)> password [12345abc] //and make it a password protected list

Last edited by thescratchytim (2012-10-16 07:06:17)


Hello! I'm thescratchytim!  Check out my projects here. Scratch on!
Status: http://blocks.scratchr.org/API.php?user=thescratchytim&amp;action=onlineStatus&amp;type=circle • Also, this project seems to be my most successful. I don't know why  tongue

Offline

 

#4 2012-10-16 10:28:58

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Script encryption or script obfuscation?

There is going to be a user_id block that you can use to see the ID of the viewer. More information is on the link. But you can use that and lists combined to save games.

It's probably discouraged to save passwords. What you will want to use (if you do use passwords) is hash them.

Offline

 

#5 2012-10-16 12:09:52

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: Script encryption or script obfuscation?

^^
The User-ID block is your best option. Get the project to show what your user-id is, then ask your friends (who you wish to make moderators) what their user-ids are. Using a script, allow changes to be made only by users with the user-ids found in a list (the list of the moderators ids). This means you don't need to worry about encrypting passwords/usernames and still have limited usability for non-moderators.


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

Board footer