Since learning MySQL I discovered a command called MD5 Which turns a string into an encrypted string. So...
md5(test)
would turn test into:
098f6bcd4621d373cade4e832627b4f6
You can then compare an entered thing like a password which is unencrypted by doing something like this:
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
Offline
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.
Offline