Solved

HTPASSWD encryption algorithm for C# or C++

Posted on 2006-07-20
5
1,419 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

773 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