Re: [Jprogramming] md5 is not md5

2014-09-06 Thread bill lam
> on adroid, would this be the best result? > > OPENSSL=: 'libssl.so' > > > - Original Message - > From: bill lam > To: Programming forum > Cc: > Sent: Saturday, September 6, 2014 8:15 PM > Subject: Re: [Jprogramming] md5 is not md5 > > sslp s

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
6, 2014 8:15 PM Subject: Re: [Jprogramming] md5 is not md5 sslp should be redundant because ~bin where the exe for the windows process started will automatically in the dll search path. I think libssl is not a stable api for android. Its path is tricky to specified even if it is part of the Qt l

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread bill lam
; OPENSSL =: sslp , (IFIOS + (;: 'Win Linux Android Darwin') i. pick 'libeay32.dll '; (2 $ <'libssl.so.1.0.0 '), (2 $ > <'/usr/lib/libssl.dylib ') > > > > > > > > - Original Message - > > From: bill lam

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
), (2 $ <'/usr/lib/libssl.dylib ') > > > > - Original Message ----- > From: bill lam > To: programm...@jsoftware.com > Cc: > Sent: Saturday, September 6, 2014 1:44 PM > Subject: Re: [Jprogramming] md5 is not md5 > > This is multi-arch. if we just use

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
.com Cc: Sent: Saturday, September 6, 2014 1:44 PM Subject: Re: [Jprogramming] md5 is not md5 This is multi-arch. if we just use the bare file name, OPENSSL=: 'libssl.so.1.0.0' it will work on 32-bit and 64-bit, and also works for 32-bit process on 64-bit host. should also works on

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread bill lam
should be set to: (based on your distribution) > > > >OPENSSL > > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > > > > my understanding of linux is that libssl.so will find the latest version. > > No idea how standard '/lib/x86_64-linux-gnu/' is, but that

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
should be set to: (based on your distribution) > >OPENSSL > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > > my understanding of linux is that libssl.so will find the latest version. > No idea how standard '/lib/x86_64-linux-gnu/' is, but that is what you want >

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Henry Rich
I haven't tested this on J64, but something like removeupper =: (_1 xor 32 (33 b.) _1)&and rot =: (removeupper or _32&(33 b.))@:(32 b.) sh =: removeupper&(33 b.) will work on J32 and J64, but you would need to apply removeupper also to the negative constants: T and q Henry Rich On

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
sorry about domain error, fixed on wiki, changing line to: OPENSSL =: sslp , (IFIOS + (;: 'Win Linux Android Darwin') i. To: Programming forum Cc: Sent: Saturday, September 6, 2014 12:12 PM Subject: Re: [Jprogramming] md5 is not md5 IFIOS 0 UNAME_z_ Linux sslp =: IFWIN pick

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
ly UNAME_z_? > > > - Original Message - > From: Raul Miller > To: Programming forum > Cc: > Sent: Saturday, September 6, 2014 11:57 AM > Subject: Re: [Jprogramming] md5 is not md5 > > Here's what happens if I use that code and only extract hexhash from >

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
what is sslp defined as? Is it possible IFIOS is not defined? or less likely UNAME_z_? - Original Message - From: Raul Miller To: Programming forum Cc: Sent: Saturday, September 6, 2014 11:57 AM Subject: Re: [Jprogramming] md5 is not md5 Here's what happens if I use that cod

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
SL =: sslp , (IFIOS + (;: 'Win Linux Android Darwin') i. wrote: > You did not go far enough down the page :P CryptAcquireContext is only used > in the MSFT binding not openssl binding > > > - Original Message - > From: Raul Miller > To: Programming forum

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
also, the openssl sha256 verb is called s256. - Original Message - From: 'Pascal Jasmin' via Programming To: "programm...@jsoftware.com" Cc: Sent: Saturday, September 6, 2014 11:52 AM Subject: Re: [Jprogramming] md5 is not md5 You did not go far eno

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
You did not go far enough down the page :P CryptAcquireContext is only used in the MSFT binding not openssl binding - Original Message - From: Raul Miller To: Programming forum Cc: Sent: Saturday, September 6, 2014 11:49 AM Subject: Re: [Jprogramming] md5 is not md5 I used the code

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
' via Programming > wrote: >> 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? >> >> >>

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
, September 6, 2014 11:41 AM Subject: Re: [Jprogramming] md5 is not md5 I tried your code at http://www.jsoftware.com/jwiki/PascalJasmin/SHA%201%2C%202%20and%20MD5%20for%20windows sha256 hexhash 'The quick brown fox jumps over the lazy dog' |domain error: cd | CryptAcquireCon

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
work? or few changes needed to work on linux? > > > - Original Message - > From: Raul Miller > To: Programming forum > Cc: > Sent: Saturday, September 6, 2014 11:11 AM > Subject: Re: [Jprogramming] md5 is not md5 > > I can't use your implementation, sin

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
: 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 whic

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
I didn't test with 32 bits, but any problems there are likely > solveable. > > > - Original Message ----- > From: Raul Miller > To: Programming forum > Cc: > Sent: Saturday, September 6, 2014 9:10 AM > Subject: [Jprogramming] md5 is not md5 > > j602:

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread 'Pascal Jasmin' via Programming
Raul Miller To: Programming forum 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&#x

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread bill lam
the code in rfc assume long int (uint4) is 4 bytes which should be valid in the era of 80386. On Sep 6, 2014 10:05 PM, "Raul Miller" wrote: > The j602 version is correct, and the same code is used in each. > > The problem seems to be that the code was designed for 32 bit integers. > > Note also

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
The j602 version is correct, and the same code is used in each. The problem seems to be that the code was designed for 32 bit integers. Note also that the reference C implementation based on RFC 1321 (http://www.rfc-editor.org/rfc/rfc1321.txt) gives exactly the same results on 32 bit and 64 bit

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread bill lam
ives: > '1a79a4d60de6718e8e5b326e338ae533' > Also any number of online md5 checkers give the same result to J602. > > > Date: Sat, 6 Sep 2014 08:21:59 -0500 > > From: s...@caveconsulting.com > > To: programm...@jsoftware.com > > Subject: Re: [Jprogramming] md5 is

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Jon Hough
8:21:59 -0500 > From: s...@caveconsulting.com > To: programm...@jsoftware.com > Subject: Re: [Jprogramming] md5 is not md5 > > Wow! I wonder which hash is the correct md5 hash? Where did the code for > each of them come from? > > Skip > > Skip Cave > Cave Consulting LLC &g

Re: [Jprogramming] md5 is not md5

2014-09-06 Thread Skip Cave
Wow! I wonder which hash is the correct md5 hash? Where did the code for each of them come from? Skip Skip Cave Cave Consulting LLC On Sat, Sep 6, 2014 at 8:10 AM, Raul Miller wrote: > j602: > >load'convert/misc/md5' >md5 'example' > 1a79a4d60de6718e8e5b326e338ae533 > > j64-802: > >

[Jprogramming] md5 is not md5

2014-09-06 Thread Raul Miller
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 for