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

#26 2012-05-13 11:53:02

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Locked Cloud Variable Option

technoboy10 wrote:

veggieman001 wrote:

RedRocker227 wrote:


Then they'd just check the script to see the method of encrypting though.

I support.

But if it were hashing, it wouldn't be crackable.

How do you 'hash' info in Scratch? The only reason I suggested this was because of a project I want to make that uses accounts.

I've got an idea: You make a "hashing" script that is asymetrical; you can't decode it in the same way you encode it (you can't "unhash"). Then, when you need to validate a password you hash the password you're trying to validate, then check it against the "hashed" version in the cloud list. THAT WILL WORK!


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#27 2012-05-13 14:43:46

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

joefarebrother wrote:

technoboy10 wrote:

veggieman001 wrote:


But if it were hashing, it wouldn't be crackable.

How do you 'hash' info in Scratch? The only reason I suggested this was because of a project I want to make that uses accounts.

I've got an idea: You make a "hashing" script that is asymetrical; you can't decode it in the same way you encode it (you can't "unhash"). Then, when you need to validate a password you hash the password you're trying to validate, then check it against the "hashed" version in the cloud list. THAT WILL WORK!

XD I have no clue how to do that. Care to give it a try?


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#28 2012-05-13 14:45:26

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

scimonster wrote:

This probably won't happen.  hmm  It's still keeping information secret, and could be abused.
Also, the user could just get around it with

say (☁ passwords)
You just have to hash them.

I suppose the easy answer would be that mods could see the locked stuff, but IDK if that would cut it.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#29 2012-05-13 15:45:59

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Locked Cloud Variable Option

technoboy10 wrote:

joefarebrother wrote:

technoboy10 wrote:


How do you 'hash' info in Scratch? The only reason I suggested this was because of a project I want to make that uses accounts.

I've got an idea: You make a "hashing" script that is asymetrical; you can't decode it in the same way you encode it (you can't "unhash"). Then, when you need to validate a password you hash the password you're trying to validate, then check it against the "hashed" version in the cloud list. THAT WILL WORK!

XD I have no clue how to do that. Care to give it a try?

For each letter of your message, you take position of this letter in the alphabet. If it is a space or a number or a symbol, you need to work out a symbol/number convertation system. (maybe have a list of all the symbols you accept) If it is only 1 digit, put a 0 on the front (so A would be 01, B = 02, ... , Z = 26, <other symbols = other numbers>) Then you string them together to make a number. Call this number A. Now here comes the tricky part: hashing this number so it can't be un-hashed. You take 2 prime numbers (the bigger the better) and X them together. (call this number K) Then you take another prime number E. It can be smaller than the others, but make sure it DOESN'T divide into A, then work out (A^E) mod K and call this number C. There is your hashed number! To validate a password, hash the one you're checking, and compare this to the (stored) hashed password.

The only way to "un-hash" anything hashed like this is to know the 2 prime numbers you used and work out a few equations, but as the two primes are never stored (only their product) then this cannot be hacked!


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#30 2012-05-13 16:02:37

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

joefarebrother wrote:

technoboy10 wrote:

joefarebrother wrote:

I've got an idea: You make a "hashing" script that is asymetrical; you can't decode it in the same way you encode it (you can't "unhash"). Then, when you need to validate a password you hash the password you're trying to validate, then check it against the "hashed" version in the cloud list. THAT WILL WORK!

XD I have no clue how to do that. Care to give it a try?

For each letter of your message, you take position of this letter in the alphabet. If it is a space or a number or a symbol, you need to work out a symbol/number convertation system. (maybe have a list of all the symbols you accept) If it is only 1 digit, put a 0 on the front (so A would be 01, B = 02, ... , Z = 26, <other symbols = other numbers>) Then you string them together to make a number. Call this number A. Now here comes the tricky part: hashing this number so it can't be un-hashed. You take 2 prime numbers (the bigger the better) and X them together. (call this number K) Then you take another prime number E. It can be smaller than the others, but make sure it DOESN'T divide into A, then work out (A^E) mod K and call this number C. There is your hashed number! To validate a password, hash the one you're checking, and compare this to the (stored) hashed password.
The only way to "un-hash" anything hashed like this is to know the 2 prime numbers you used and work out a few equations, but as the two primes are never stored (only their product) then this cannot be hacked!

I assume you mean 'multiply' by 'X?'

Last edited by technoboy10 (2012-05-13 16:03:34)


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#31 2012-05-13 16:31:32

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Locked Cloud Variable Option

I'm changing my mind: I support, but I'd like some sort of function to lock or unlock a cloud variable. Perhaps a right click option?

As veggieman said, hashing is also a possibility using SHA-1 or something similar. However, this would make the value hidden to everyone except the computer. This is nice for games, but nothing else. The computer can check if the password is correct, but not print what the hash is equal to in english.

Last edited by stevetheipad (2012-05-13 16:32:53)


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#32 2012-05-13 17:27:16

G0D_M0D3
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Locked Cloud Variable Option

Yes, support.


I made a MC texture pack! Get it at planetminecraft!
http://i.imgur.com/0EG0u.png

Offline

 

#33 2012-05-13 17:29:48

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Locked Cloud Variable Option

stevetheipad wrote:

I'm changing my mind: I support, but I'd like some sort of function to lock or unlock a cloud variable. Perhaps a right click option?

As veggieman said, hashing is also a possibility using SHA-1 or something similar. However, this would make the value hidden to everyone except the computer. This is nice for games, but nothing else. The computer can check if the password is correct, but not print what the hash is equal to in english.

But why would it need to?


Posts: 20000 - Show all posts

Offline

 

#34 2012-05-13 17:44:01

pi3
Scratcher
Registered: 2011-12-31
Posts: 500+

Re: Locked Cloud Variable Option

Support! Seems like a good idea!


http://i44.tinypic.com/ofdhc4.jpgThanks FreshStudios!

Offline

 

#35 2012-05-13 18:23:42

James07
Scratcher
Registered: 2012-04-04
Posts: 500+

Re: Locked Cloud Variable Option

support


http://trinary.site40.net/images/scratchrank.php?username=James07

Offline

 

#36 2012-05-14 02:18:25

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Locked Cloud Variable Option

technoboy10 wrote:

joefarebrother wrote:

technoboy10 wrote:


XD I have no clue how to do that. Care to give it a try?

For each letter of your message, you take position of this letter in the alphabet. If it is a space or a number or a symbol, you need to work out a symbol/number convertation system. (maybe have a list of all the symbols you accept) If it is only 1 digit, put a 0 on the front (so A would be 01, B = 02, ... , Z = 26, <other symbols = other numbers>) Then you string them together to make a number. Call this number A. Now here comes the tricky part: hashing this number so it can't be un-hashed. You take 2 prime numbers (the bigger the better) and X them together. (call this number K) Then you take another prime number E. It can be smaller than the others, but make sure it DOESN'T divide into A, then work out (A^E) mod K and call this number C. There is your hashed number! To validate a password, hash the one you're checking, and compare this to the (stored) hashed password.
The only way to "un-hash" anything hashed like this is to know the 2 prime numbers you used and work out a few equations, but as the two primes are never stored (only their product) then this cannot be hacked!

I assume you mean 'multiply' by 'X?'

yes. X = multiply


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#37 2012-05-14 09:07:42

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

stevetheipad wrote:

I support, but I'd like some sort of function to lock or unlock a cloud variable. Perhaps a right click option?

Whoops, I guess I didn't make that clear enough. Yes, I meant an option to lock them. :3


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#38 2012-05-14 09:15:12

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

stevetheipad, G0D_M0D3, pi3, and James07 wrote:

support

Thanks!


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#39 2012-05-14 17:27:41

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

Bump :3


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#40 2012-05-15 11:44:05

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Locked Cloud Variable Option

just use my hash algorithm once it's good enough :advertising my project everywhere:

Offline

 

#41 2012-05-15 18:06:46

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

roijac wrote:

just use my hash algorithm once it's good enough :advertising my project everywhere:

big_smile  That's exactly  what I need! Though this would still be handy.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#42 2012-05-15 18:13:24

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Locked Cloud Variable Option

I support!


6418,

Offline

 

#43 2012-05-15 18:18:04

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

CheeseMunchy wrote:

I support!

big_smile  Thanks! Remember to vote for it on the Suggestions page!


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#44 2012-05-15 20:20:32

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Locked Cloud Variable Option

technoboy10 wrote:

Suppose I created a project with 'accounts' and passwords, and the passwords are stored in a cloud list. If someone saw inside the project, they would have access to all the passwords. What I propose is an option for 'locked' cloud variables. The values of these would not be accessible to anyone but the creator of the project. However, this would not change Scratch's core values; because if someone tried to view or change these, a notification box would appear with 'The creator of this project has locked these variables. To change the values, you must erase the(or create a new) cloud variable/list.'
Please note that locking/unlocking data would be an option. If the creator chose to use unlocked data, the values could be changed by anyone. Also, the values may be changed by the original program. Also, mods could see locked data (yes, the magical fix for any suggestion.  tongue ).

Supporters:
Technoboy10
RedRocker227
joefarebrother
jcpopp
TorbyFork234
SJRCS_011
zippynk
stevetheipad
G0D_M0D3
pi3
James07

Scratch Suggestions page

I don't agree.

Scratch projects are for all to use and see the source.

Possibly having it so it would automatically change the variables's names and ips or whatever.

But to lock it means no one could use it.

I would say to make the ip/name of the variable for that user only,.
(it would be like Pecola1's pass list.)

That way users could use the cloud variable, but it would be for their user only. And it would not have the information stored on it.  smile  But since your suggestion would interfere with this, and i don't agree with your suggestion. I vote no.  tongue


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#45 2012-05-15 20:27:05

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Locked Cloud Variable Option

Pecola1 wrote:

technoboy10 wrote:

Suppose I created a project with 'accounts' and passwords, and the passwords are stored in a cloud list. If someone saw inside the project, they would have access to all the passwords. What I propose is an option for 'locked' cloud variables. The values of these would not be accessible to anyone but the creator of the project. However, this would not change Scratch's core values; because if someone tried to view or change these, a notification box would appear with 'The creator of this project has locked these variables. To change the values, you must erase the(or create a new) cloud variable/list.'
Please note that locking/unlocking data would be an option. If the creator chose to use unlocked data, the values could be changed by anyone. Also, the values may be changed by the original program. Also, mods could see locked data (yes, the magical fix for any suggestion.  tongue ).

Supporters:
Technoboy10
RedRocker227
joefarebrother
jcpopp
TorbyFork234
SJRCS_011
zippynk
stevetheipad
G0D_M0D3
pi3
James07

Scratch Suggestions page

I don't agree.

Scratch projects are for all to use and see the source.

Possibly having it so it would automatically change the variables's names and ips or whatever.

But to lock it means no one could use it.

Ya...there are just some things you shouldn't use...


6418,

Offline

 

#46 2012-05-15 21:27:46

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

Pecola1 wrote:

Wall of text  wink

Isn't that still locking it, to have only certain users be able to view it?

Last edited by technoboy10 (2012-05-15 21:28:01)


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#47 2012-05-15 21:36:34

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Locked Cloud Variable Option

Support  smile


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#48 2012-05-15 21:43:39

joletole
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: Locked Cloud Variable Option

I completely support.

Offline

 

#49 2012-05-15 22:06:53

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Locked Cloud Variable Option

Mokat; joletole wrote:

support

Thanks! Also; hashing works quite well, so this may be a superfluous suggestion.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#50 2012-05-16 12:43:17

Markyparky
Scratcher
Registered: 2008-12-23
Posts: 40

Re: Locked Cloud Variable Option

add my name.


[scratchblocks] think [Sir, you have just failed an attempt to create Scratch Blocks.] [/scratchblocks]

Offline

 

Board footer