Apache's mod_auth_digest hashes
I wanted to use Apache's bundled command "htdigest2" for managing Ayako's website's users, and I just found out that:
$ htdigest2 .htdigest realm user Adding password for user in realm realm. New password: [pass] Re-type new password: [pass]
...is strictly equivalent to:
$ echo "user:realm:$( echo -n 'user:realm:pass' | md5sum )" >>.htdigest
Leave a Comment