the code was tested at one point on mac.  There is an attempt in the 
definitions (at bottom of page only) to link on linux.  assumes 
/usr/lib/libssl.so .  Should work? or few changes needed to work on linux?


----- Original Message -----
From: Raul Miller <rauldmil...@gmail.com>
To: Programming forum <programm...@jsoftware.com>
Cc: 
Sent: Saturday, September 6, 2014 11:11 AM
Subject: Re: [Jprogramming] md5 is not md5

I can't use your implementation, since I'm not running this on windows.

That said, I've got a fix for my code.

That said, I do not have a fix for the portable code in convert/misc/md5.

The first thing which would need to be fixed there are the uses of 32
b. and 33 b. (in the definitions of sh_pcrypt_ and rot_pcrypt_) but
oddly enough that does not seem to be  sufficient. It's not obvious to
me what else needs to be fixed, and right now I am feeling too
impatient to isolate the problem.

Thanks,

-- 
Raul


On Sat, Sep 6, 2014 at 10:55 AM, 'Pascal Jasmin' via Programming
<programm...@jsoftware.com> wrote:
> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to