----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hello,

I need some clarification regarding usage of htpasswd tool.

Environment:
Apache 1.3.12, Apache JServ 1.1, JDK1.2, JSDK2.0

Problem:
For performing the authentication of users of my resources, I am using a
password file created using htpasswd utility.So it contains the user name
and the message digest of the password (default is MD5).
I am not using .htaccess files.Instead,when a user asks for a protected
resource, he will be prompted for authentication using a simple page.
Now,using the security API of JDK, I create a digest of the password that he
entered, and check it against the one generated by the htpasswd tool.The
password digests are not at all matching.
The digest generated by JDK matches with the standard MD5 digest for a
particular message.
 For example MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72  (in hex) is
matching with the one generated by JDK

Please let me know how to programmatically compare the digest generated by
apache with other digests
Thanks in advance,
Anil
Anil B.R
Engineer, Software Development
Siemens Public Communication Networks Ltd.
25/2, M.G Road, Bangalore, India.
Tel         : +91-80-5594067   Extn:4527
Fax         : +91-80-5594369
mailto:[EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to