summaryrefslogtreecommitdiffstats
path: root/Zpkgs/krebs/hashPassword.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-07-29 14:56:06 +0200
committermakefu <github@syntax-fehler.de>2015-07-29 14:56:06 +0200
commit39eacce0f8c053fbdf5189c50c7704db4a295c32 (patch)
tree6c25ed67af9d9a2cd222f8f582917d1b20e0ee71 /Zpkgs/krebs/hashPassword.nix
parenta2be52f6fa5cbd486da38be1e3b4dcdcde3b17fd (diff)
parent1cbf3f264ad073bee5766627bcb8364c52c22f9c (diff)
merge cloudkrebs, fix path to krebs/4lib
Diffstat (limited to 'Zpkgs/krebs/hashPassword.nix')
-rw-r--r--Zpkgs/krebs/hashPassword.nix16
1 files changed, 0 insertions, 16 deletions
diff --git a/Zpkgs/krebs/hashPassword.nix b/Zpkgs/krebs/hashPassword.nix
deleted file mode 100644
index a10340c..0000000
--- a/Zpkgs/krebs/hashPassword.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{ lib, pkgs, ... }:
-
-pkgs.writeScriptBin "hashPassword" ''
- #! /bin/sh
- # usage: hashPassword
- set -euf
-
- export PATH=${lib.makeSearchPath "bin" (with pkgs; [
- coreutils
- mkpasswd
- openssl
- ])}
-
- salt=$(openssl rand -base64 16 | tr -d '+=' | head -c 16)
- exec mkpasswd -m sha-512 -S "$salt"
-''