about summary refs log blame commit diff
path: root/tools/hash-password.nix
blob: fcf8abda78ea4ab5f3f71523a2d259f1b6f1b71b (plain) (tree)
1
2
3
4
5
6
7

                                                              
                     

                                           
                                                                                     
  
# Utility for invoking slappasswd with the correct options for
# creating an ARGON2 password hash.
{ depot, pkgs, ... }:

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