Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My development machine is Windows. I use the htpasswd program that is part of the Windows XAMPP package, version 1.7.7, to generate a Windows Apache password file.

C:\xampp\apache\bin\htpasswd.exe -bc .htpasswd usename password

I need to generate a password file for a Redhat Linux machine but have no access to the htpasswd program on that machine. If I can generate a valid Linux Apache passwd on Windows then I can FTP it over to the Linux system.

The htpasswd documentation says that I can use the -d flag to force crypt() encryption which should work on Linux instead of the default MD5 encryption that works on Windows.

My problem is that

C:\xampp\apache\bin\htpasswd.exe -bcd .htpasswd usename password

generates a file but gives a message which says "Automatically using MD5 format".

How do I generate a valid Apache password file for a Linux machine from a Windows PC?

share|improve this question
Apache on Linux will work happily with MD5 password hashes. – larsks Apr 2 '12 at 14:43

You can use an online tool such as this to get the job done.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.