or download this
htpasswd encrypts passwords using either a version of MD5
modified for Apache, or the system's crypt() routine. Files
...
some user records may have MD5-encrypted passwords while
others in the same file may have passwords encrypted with
crypt().