Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: generate an htpasswd file without having Apache tools installed

$
0
0
Hi.

Just in case someone will step on it too.

'perl -le 'print crypt("password", "salt")' is a root cause for situation when you can input any random sequence after entering valid password. Like, imagine, you have a password "mys3cr3t", and you generated a hash using perl one-liner above. This way, any password of the following ones (and similar in general) will be valid:

mys3cr3t
mys3cr3t11
mys3cr3tkwdhekcgejhcdg
mys3cr3t8776e3df3uyd386dt7d6t

So - use apr1, this is more secure.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>