htdigest

debianlabs:~# htdigest -c password.txt knowledge.store jeffrin
Adding password for jeffrin in realm knowledge.store.
New password:
Re-type new password:
debianlabs:~# vi password.txt
debianlabs:~# cat password.txt
jeffrin:knowledge.store:64a3386f95d7380f0fe8d22cf81bec98
debianlabs:~#
http://httpd.apache.org/docs/1.3/programs/htdigest.html