It was written and tested for 32 bits. J7-64 also gives the wrong answer. At the bottom of this page there are openssl bindings to similar hashes. http://www.jsoftware.com/jwiki/PascalJasmin/SHA%201%2C%202%20and%20MD5%20for%20windows
all the bound hashes are the same speed when called, but I added an md5 implementation this morning. IIRC it is over 1000 times faster than the J code. I possibly made the unpopular design decision to split out the formatting of the hash and keep it raw binary. There is a 5x performance benefit for doing so. the fastest conversion (but takes more space than binary) is listhash =: (a. i. ])@: or: a. i. md5 'example' If you are having any problems with the library, the source is likely in the first 3 lines. I didn't test with 32 bits, but any problems there are likely solveable. ----- Original Message ----- From: Raul Miller <rauldmil...@gmail.com> To: Programming forum <programm...@jsoftware.com> Cc: Sent: Saturday, September 6, 2014 9:10 AM Subject: [Jprogramming] md5 is not md5 j602: load'convert/misc/md5' md5 'example' 1a79a4d60de6718e8e5b326e338ae533 j64-802: load'convert/misc/md5' md5 'example' 64a9df64d8defee229d86709a425ea7a This is a problem... == Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm