At 00.26 22/08/2002, you wrote:
>  From what I read at
>http://httpd.apache.org/docs-2.0/programs/htpasswd.html , the apache
>htpasswd file uses MD5 encryption.  This is what the ColdFusion Hash()
>function does also.  That should work.

I made a test and Apache MD5 is different from CF Hash()

User: foo
Password: bar

Forcing MD5:

[faser@sauron: faser]$ htpasswd -nmb foo bar
foo:$apr1$UxWSv/..$Hxy1XWDCyCZrK6kLbY16H/

With the default Crypt():

[faser@sauron: faser]$ htpasswd -nb foo bar
foo:Iq1hP730TW7Vg

ColdFusion Hash() or CFLIB MD5():
<cfoutput>#Hash("bar")#</cfoutput>
37B51D194A7513E45B56F6524F2D51F2

Using <cfexecute> CF crash (Caught a fatal signal (11) - Aborting)

<cfset arguments="nb foo bar">

<cfexecute name="/usr/bin/htpasswd"
            arguments="#arguments#"
            timeout="10">
</cfexecute>

Bye









--------------------------------------------------
FABIO SERRA - faser(at)faser.net
PGP available
--------------------------------------------------


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to