Jun 1, 2013

Nginx generate password for auth basic

<?php
echo "Usage: php gen_passwd.php passwd_to_crypted". PHP_EOL;
$pass = $argv[1];
echo crypt($pass, base64_encode($pass)). PHP_EOL;

No comments:

Post a Comment

New comment