Recommend bcrypt passwords everywhere

This commit is contained in:
Henri Menke 2020-11-29 10:58:16 +01:00 committed by Antoine Eiche
parent c00fc587f5
commit 89bd89c706
8 changed files with 19 additions and 15 deletions

View file

@ -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";