Syntax: md5(str text);


Creates an MD5 hash of the given string.

Note that MD5 hashes are not a form of encryption; they are checksums of strings. However, you can use MD5 checksums as a simple way of storing passwords, since once you have stored the hash of the original password, you can simply hash any input password and compare the two.

You cannot decode an MD5 hash, but they may be susceptible to a dictionary attack. There is also a microscopic chance that two completely different strings will return the same MD5 hash.


function onCreated() {
  echo(md5("Hello world!"));

... Will output "86fb269d190d2c85f6e0468ceca42a20" in RC when on the serverside, or in your F2 menu when on the clientside.



There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki