The Road to Elysium

August 31, 2009

Generate a htpasswd password without installing Apache

Filed under: Snippets — jorge @ 16:23

A oneliner with Perl does the trick:

$ perl -le 'print crypt("password", "salt")'

Your htpasswd-file should then look like so:

UserName:EncryptedPassword:YourComment

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress