On Wed, 19 Mar 2003 [EMAIL PROTECTED] wrote: > Given that the output is different for each one, if 'my pass' was the same > on all boxes, I would say, 'extremely portable NOT' <G> > > If 'my pass' was not the same, what was the point? > > (or was the quoted string literal, not representational?) > > Bill Hacker > > > In <[EMAIL PROTECTED]>, on > 03/18/03 > at 09:35 AM, Bowie Bailey <[EMAIL PROTECTED]> said: > > >From: Matt Hyclak [mailto:[EMAIL PROTECTED] > >> > >> [host]$ perl > >> print crypt('my pass','$1$') . "\n"; > >> $1$$ZgHOLxjS.UBCu4uVg70a91 > >> [host]$ > >> > >> Slightly more portable, as my linux crypt(3) doesn't support md5 :-) > > >This is a bit off-topic, but... > > >I ran this script on my Win2K box: > >C:\>perl > >print crypt('my pass', '$1$') . "\n"; > >$1Up8om3Gxhb6 > >C:\> > > >an HP-UX box: > >[hpux]$ perl > >print crypt('my pass', '$1$') . "\n"; > >$1yP7XbRMeGqE > >[hpux]$ > > >and a Linux box: > >[linux]$ perl > >print crypt('my pass', '$1$') . "\n"; > >$1$$ZgHOLxjS.UBCu4uVg70a91 > >[linux]$ > > >Am I missing something, or is this method not extremely portable?
Hmmm. It would appear that it is not. Perhaps someone would like to take my crypter.c and take the BSD md5 crypt function and put them together?? If I had the time... -- Joe Laffey | Want to convert subnet masks between different LAFFEY Computer Imaging | notations, or figure the number of IPs in a block? St. Louis, MO | Whatmask-It's FREE - www.laffeycomputer.com/wm.html ------------------------------------------------------------------------------ ------------------------------------------------------- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
