about summary refs log tree commit diff
path: root/tools/hash-password.nix
blob: 9893d521787e41d198c8080ded23582ec6a98891 (plain) (blame)
1
2
3
4
5
6
7
# Utility for invoking slappasswd with the correct options for
# creating an ARGON2 password hash.
{ pkgs, ... }:

pkgs.writeShellScriptBin "hash-password" ''
  ${pkgs.openldap}/bin/slappasswd -o module-load=pw-argon2 -h '{ARGON2}'
''