db/mkpass
author Edouard Tisserant <edouard@pep-project.org>
Mon, 08 May 2017 22:09:00 +0200
changeset 1763 8428975706d9
parent 1513 e7f7e42385b5
permissions -rw-r--r--
Merged
vb@817
     1
#!/bin/sh
vb@815
     2
vb@1513
     3
# This file is under GNU General Public License 3.0
vb@1513
     4
# see LICENSE.txt
vb@1513
     5
vb@1513
     6
vb@815
     7
if [ $1/ == / ] ; then
vb@815
     8
    lang=en
vb@815
     9
else
vb@818
    10
    if [ $1/ == -h/ -o $2/ != / ] ; then
vb@818
    11
        echo usage: $0 [ISO 639 language code]
vb@818
    12
        exit 0
vb@818
    13
    fi
vb@815
    14
    lang=$1
vb@815
    15
fi
vb@815
    16
vb@815
    17
trustwords.py -l $lang ` hexdump -vxn 10 /dev/random | sed -E 's/^[0-9a-z]+//'`