summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHenri Menke <henri@henrimenke.de>2020-11-29 10:58:16 +0100
committerAntoine Eiche <lewo@abesis.fr>2020-11-29 20:19:46 +0100
commit89bd89c706c9862c6980cdf18a74ad041f98dc76 (patch)
tree0e18e76223b830ed8022466f3bdd17bcaa4af6a4 /tests
parentc00fc587f5cbdc9e498f00a6ec6dafe164c00289 (diff)
Recommend bcrypt passwords everywhere
Diffstat (limited to 'tests')
-rw-r--r--tests/intern.nix4
-rw-r--r--tests/multiple.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/intern.nix b/tests/intern.nix
index 0799fc0..1d1816b 100644
--- a/tests/intern.nix
+++ b/tests/intern.nix
@@ -29,8 +29,8 @@ let
hashPassword = password: pkgs.runCommand
"password-${password}-hashed"
- { buildInputs = [ pkgs.mkpasswd ]; } ''
- mkpasswd -m sha-512 ${password} > $out
+ { buildInputs = [ pkgs.apacheHttpd ]; } ''
+ htpasswd -nbB "" "${password}" | cut -d: -f2 > $out
'';
in
diff --git a/tests/multiple.nix b/tests/multiple.nix
index c6a4edf..9f54cff 100644
--- a/tests/multiple.nix
+++ b/tests/multiple.nix
@@ -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";