Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1498
  • Last Modified:

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.
0
Finch
Asked:
Finch
  • 2
  • 2
1 Solution
 
whatsit2002Commented:
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
 
FinchAuthor Commented:
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
 
whatsit2002Commented:
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
 
FinchAuthor Commented:
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now