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

#1 2011-03-05 03:17:02

jbthegreat
Scratcher
Registered: 2009-01-18
Posts: 64

One Way Encryption

Any example on how to do one way encryption in scratch like md5? I am helping out on making an os and would not like the passwords to be stored in plain text, because people would see your pass just by looking at the variables.


http://i53.tinypic.com/2f04pdf.jpghttp://i52.tinypic.com/x2rrdu.jpg

Offline

 

#2 2011-03-05 14:22:21

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: One Way Encryption

MD5 seems a bit too complicated for Scratch, it requires extremely complicated algorithms and operations repeated over and over...

One way encryption is a big ask... Even a simple cryptographic hash function would be near-impossible...

Instead of encryption, how about just using the Hidden Sprites method to hide a password? You can read about it here.


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#3 2011-03-06 01:42:01

jbthegreat
Scratcher
Registered: 2009-01-18
Posts: 64

Re: One Way Encryption

WeirdF wrote:

MD5 seems a bit too complicated for Scratch, it requires extremely complicated algorithms and operations repeated over and over...

One way encryption is a big ask... Even a simple cryptographic hash function would be near-impossible...

Instead of encryption, how about just using the Hidden Sprites method to hide a password? You can read about it here.

I know the hidden sprites method. It is very easy to crack.


http://i53.tinypic.com/2f04pdf.jpghttp://i52.tinypic.com/x2rrdu.jpg

Offline

 

#4 2011-03-06 01:43:13

jbthegreat
Scratcher
Registered: 2009-01-18
Posts: 64

Re: One Way Encryption

So any other ways? I want the right answer. Maybe not md5 but some simpler way.


http://i53.tinypic.com/2f04pdf.jpghttp://i52.tinypic.com/x2rrdu.jpg

Offline

 

#5 2011-03-06 03:50:07

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: One Way Encryption

Well, here's an advanced example of two-way encryption. If you used similar scripts, but only the encoding ones, then unless somebody was extremely good at both logic, maths and Scratch, they couldn't figure out the scripts to decode it.

I know it's not exactly what you're looking for but one-way encryption is hard even in very complex programming languages...


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#6 2011-03-08 01:50:42

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: One Way Encryption

jbthegreat wrote:

So any other ways? I want the right answer. Maybe not md5 but some simpler way.

Usually OSes don't store any useful information, more a fun thing to play around with. Unless you're using mesh or something.


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

Board footer