quote:
Originally posted by Ezra
Try this JavaScript function
http://pajhome.org.uk/crypt/md5/md5.js
How would I go about using that code? I think it has something to do with these functions but I'm not sure
code:
/*
* These are the functions you'll usually want to call
* They take string arguments and return either hex or base-64 encoded strings
*/function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz));}
function b64_md5(s){ return binl2b64(core_md5(str2binl(s), s.length * chrsz));}
function str_md5(s){ return binl2str(core_md5(str2binl(s), s.length * chrsz));}
function hex_hmac_md5(key, data) { return binl2hex(core_hmac_md5(key, data)); }
function b64_hmac_md5(key, data) { return binl2b64(core_hmac_md5(key, data)); }
function str_hmac_md5(key, data) { return binl2str(core_hmac_md5(key, data)); }
edit: What I mean is, how would I tell my own code to transfer text to md5 afterwards?