Friday, August 30, 2013

htpasswd without apache

Source
http://forum.nginx.org/read.php?6,210155,210168#msg-210168

1. echo -e "your-username:`perl -le 'print crypt("your-password","salt")'`" > /etc/nginx/htpasswd

2. online tool: http://www.htaccesstools.com/htpasswd-generator/

3. ruby -le 'print "your-username: #{%Q{your password}.crypt(%Q{salt})}"'


No comments:

Post a Comment