[lug] portable md5 function?
D. Stimits
stimits at idcomm.com
Wed Aug 22 13:10:43 MDT 2001
Alan Robertson wrote:
>
> Alan Robertson wrote:
> >
> > "D. Stimits" wrote:
> > >
> > > I'm trying to find out if there is now a semi-portable (at least among
> > > linux machines, probably UNIX in general) md5 sum function call
> > > available. The original crypt() one-way hash does not use md5, but most
> > > of the linux distro's now use md5 (or make it available) for passwords.
> > > Is this possibly built into the libpam library? I'm trying to find a C
> > > function call to do this, without invoking a "system()" call.
> >
> > Try this one. It works for me ;-)
> >
> > http://cvs.linux-ha.org/viewcvs/viewcvs.cgi/~checkout~/linux-ha/lib/plugins/HBauth/md5.c?rev=1.1&content-type=text/plain
> >
> > Sorry for the funky URL, but that's viewcvs for ya.
> >
> > There's also a crc and an md5 algorithm in the same directory:
> >
> > http://cvs.linux-ha.org/viewcvs/viewcvs.cgi/linux-ha/lib/plugins/HBauth/#dirlist
> >
> > It's got some boilerplate for a plugin loading system that we use, but it's
> > easy to see what to call for the MD5 function if you want.
>
> Or you can drag down the whole plugin loading system (*can you spell
> overkill*? ;-)) and then authenticate with any type of authentication
> function you want. If you write any more that use the same form, let me
> know and we'll put them up on our CVS instance ;-)
Probably this will be going into something that already has a "killer
plugin system that overkills", but the MD5 stuff won't be used for
authentication, instead it will be used to help manage plugins (I
actually have two projects I'm looking at this for, one of them is
rather simple and needs a unique identifier of raw data sources).
D. Stimits, stimits at idcomm.com
>
> -- Alan Robertson
> alanr at unix.sh
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list