md5digest and php

Rodney Tamblyn rodney at oceanbrowser.com
Fri Feb 27 03:09:21 EST 2004


This is a big thank you to Dave Cragg, who wrote in the archives last  
year:

http://lists.runrev.com/pipermail/use-revolution/2003-November/ 
025764.html

function hexDigest pvalue
    local tRes
    put md5Digest(pValue) into tMD5
    get binaryDecode("H*",tMD5,tRes)
    return tRes
end hexDigest

For others, note that this also produces (as you would expect) the same  
md5 hash string as returned by PHP md5 function (  
http://www.phpfreaks.com/phpref/116.php )

:-)

Rodney



More information about the use-livecode mailing list