Ryan - >From the reading I'm doing (I should be doing some work) Disclaimer: I don't claim to be a Unix guru by any stretch
if it is a standard crypt() function, it will be encrypting via the md5 hash. (one way) The other type using a crypt(3), which actually uses a 'salt' as a seed for the encyrption. (two way). If you are using a salt, the salt's used should be listed on your password file, so you should be able to tell. If that is the case - you would need to find out what the encryption is for crypt(3) I hope that helps. I would just try the md5 hash with a known Unix account, and see if it works. Mark ------------------------------------------------------------------ [EMAIL PROTECTED] ICQ: 3094740 Safe From Bees [ www.safefrombees.com ] Quoting Ryan Sabir <[EMAIL PROTECTED]>: > Heya Mark, > > So will Hash(password) result in the same encryption that a Unix box > uses in its '/etc/passwd' file? > > These are users that have accounts on the Unix system, and we need to > authenticate them against their existing account information. > > thanks! > > > > Friday, May 7, 2004, 9:48:12 AM, you wrote: > > MM> Ryan are you thinking of the md5 hash of a string? > > MM> If so (and if not, why not?) CF has the Hash() funtion, and if it's Unix, > it will > MM> definatley have a version of it (either as md5() or somesuch). > > MM> Since it's a one way algorithm, just compare the results of both md5 > values. > > MM> HTH > > MM> Mark > MM> ------------------------------------------------------------------ > MM> [EMAIL PROTECTED] > MM> ICQ: 3094740 > MM> Safe From Bees > MM> [ www.safefrombees.com ] > > > MM> Quoting Ryan Sabir <[EMAIL PROTECTED]>: > > >> Hey all, > >> > >> Has anyone implemented the UNIX style 'CRYPT' algorithm in CF? > >> > >> I have a system which will be authenticating users through a web > >> service. I need to CRYPT the password and only send the encrypted > >> version to the service, where it will be checked and I will be told if > >> the user is authenticated or not. > >> > >> The encrypted password will be checked against a users entry in an > >> '/etc/passwd' file on a Linux box. > >> > >> I'm pretty sure there's a standard algorithm for this.. has anyone > >> implemented it? > >> > >> thanks, bye! > >> > >> > >> ----------------------- > >> Ryan Sabir > >> Newgency Pty Ltd > >> 2a Broughton St > >> Paddington 2021 > >> Sydney, Australia > >> Ph (02) 9331 2133 > >> Fax (02) 9331 5199 > >> Mobile: 0411 512 454 > >> http://www.newgency.com/index.cfm?referer=rysig > >> > >> > >> --- > >> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > >> To unsubscribe send a blank email to > [EMAIL PROTECTED] > >> > >> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > >> http://www.mxdu.com/ + 24-25 February, 2004 > >> > >> > >> > > MM> --- > MM> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > MM> To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MM> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > MM> http://www.mxdu.com/ + 24-25 February, 2004 > > > ----------------------- > Ryan Sabir > Newgency Pty Ltd > 2a Broughton St > Paddington 2021 > Sydney, Australia > Ph (02) 9331 2133 > Fax (02) 9331 5199 > Mobile: 0411 512 454 > http://www.newgency.com/index.cfm?referer=rysig > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > http://www.mxdu.com/ + 24-25 February, 2004 > > > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
