db/mkpass
author Krista Bennett <krista@pep-project.org>
Wed, 06 Jun 2018 20:21:24 +0200
branchENGINE-422
changeset 2742 cd06139cb7fc
parent 1513 e7f7e42385b5
permissions -rw-r--r--
close branch
     1 #!/bin/sh
     2 
     3 # This file is under GNU General Public License 3.0
     4 # see LICENSE.txt
     5 
     6 
     7 if [ $1/ == / ] ; then
     8     lang=en
     9 else
    10     if [ $1/ == -h/ -o $2/ != / ] ; then
    11         echo usage: $0 [ISO 639 language code]
    12         exit 0
    13     fi
    14     lang=$1
    15 fi
    16 
    17 trustwords.py -l $lang ` hexdump -vxn 10 /dev/random | sed -E 's/^[0-9a-z]+//'`