Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active December 31, 2015 12:39
Show Gist options
  • Select an option

  • Save fedir/7987624 to your computer and use it in GitHub Desktop.

Select an option

Save fedir/7987624 to your computer and use it in GitHub Desktop.
Generate htpasswd without htpasswd installed (with Perl which is installed everywhere)
perl -le 'print "yourusername:".crypt("yourpassword", "salt")' >> /home/htpasswd; cat /home/htpasswd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment