Solved

HTPASSWD encryption algorithm for C# or C++

Posted on 2006-07-20
5
1,427 Views
Last Modified: 2008-01-09
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.
0
Comment
Question by:Finch
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:whatsit2002
ID: 17155335
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
0
 

Author Comment

by:Finch
ID: 17157812
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.

0
 
LVL 7

Accepted Solution

by:
whatsit2002 earned 500 total points
ID: 17168306
I'm not sure how to get the version programatically. I'm unfamiliar with any API libraries for Apache. However, I do know you can get the version at the command prompt (or at least you used to be able to) by typing "apache --version"

Thanks

Jason
0
 

Author Comment

by:Finch
ID: 17168690
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.
0
 
LVL 1

Expert Comment

by:IgorPodsekin
ID: 26425516
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question