db/mkpass
author Volker Birk <vb@pep-project.org>
Mon, 06 May 2019 15:42:50 +0200
branchsync
changeset 3633 6f3310e6a219
parent 3121 f33a2ae77177
permissions -rw-r--r--
Added tag 2.0.0-RC for changeset 4998d60e0fe8
vb@817
     1
#!/bin/sh
vb@815
     2
krista@3121
     3
# This file is under GNU General Public License 3.0
krista@3121
     4
# see LICENSE.txt
krista@3121
     5
krista@3121
     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]+//'`