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

#1 2011-03-25 17:06:46

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

squeak encrypting?

Since learning MySQL I discovered a command called MD5 Which turns a string into an encrypted string. So...

Code:

md5(test)

would turn test into:

Code:

098f6bcd4621d373cade4e832627b4f6

You can then compare an entered thing like a password which is unencrypted by doing something like this:

Code:

if(md5($_POST[password]) == '098f6bcd4621d373cade4e832627b4f6')

Is there something like this in squeak? It would solve that age old problem of not being able to properly password protect things in smalltalk  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2 2011-03-26 06:24:12

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: squeak encrypting?

http://forum.world.st/MD5-plugin-td133279.html?

I don't know of an currently existing method.

If you want to do things the hard way, code a new method in the instance side of Object and make it implement this code, taking the value returned by the toString method as an argument.


/* No comment */

Offline

 

#3 2011-03-26 14:27:41

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: squeak encrypting?

Hmmm, I'm not sure I need it badly enough to create a new method  tongue  I'll stick to substitution or some such instead!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer