Link to home
Start Free TrialLog in
Avatar of Finch
Finch

asked on

HTPASSWD encryption algorithm for C# or C++

Does anyone know of a C++ or C# function (source code or a DLL) for providing the HTPASSWD encryption algorithm? That is. I'm looking to encrypt passwords and storing them in the HTPASSWD file format and I need the algorithm for encrypting the ASCII passwords.
Avatar of whatsit2002
whatsit2002
Flag of United States of America image

The encryption algorithm used by Apache to create the .htpasswd files is similar to an MD5 encryption, but it has been modified. The "htpasswd" program that comes with Apache is probably your best bet. You can call it from your C# application and let it do the work.

Thanks.

Jason
Avatar of Finch
Finch

ASKER

Thanks for the tip because I was about to try using the MD5 encryption and I would have been disappointed. Do you know how I can access the Apache version? I'm not familiar with the Apache system and interfaces.

ASKER CERTIFIED SOLUTION
Avatar of whatsit2002
whatsit2002
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Finch

ASKER

OK Thansk for your help.  I'm going to close this question and ask another more specific question about where to get the Apache encryption algorithm for use in a windows environment.