PHP/Utility Function/mhash
MD5 by way of the mhash extension
<?
$hashB = bin2hex(mhash(MHASH_MD5, "optimize this!"));
?>
mhash.php
<?php
$userpswd = "mysecretpswd";
$pswdhash = mhash(MHASH_SHA1, $userpswd);
echo "The hashed password is: ".bin2hex($pswdhash);
?>