Recommend bcrypt passwords everywhere
This commit is contained in:
parent
c00fc587f5
commit
89bd89c706
8 changed files with 19 additions and 15 deletions
|
@ -5,9 +5,9 @@
|
|||
let
|
||||
hashPassword = password: pkgs.runCommand
|
||||
"password-${password}-hashed"
|
||||
{ buildInputs = [ pkgs.mkpasswd ]; }
|
||||
{ buildInputs = [ pkgs.apacheHttpd ]; }
|
||||
''
|
||||
mkpasswd -m sha-512 ${password} > $out
|
||||
htpasswd -nbB "" "${password}" | cut -d: -f2 > $out
|
||||
'';
|
||||
|
||||
password = pkgs.writeText "password" "password";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue