db/mkpass
author Krista Grothoff <krista@pep-project.org>
Mon, 24 Oct 2016 21:33:35 +0200
branchENGINE-128
changeset 1334 85973d7d2859
parent 818 45c3c2836b67
child 1513 e7f7e42385b5
permissions -rwxr-xr-x
ENGINE-128: closing branch
vb@817
     1
#!/bin/sh
vb@815
     2
vb@815
     3
if [ $1/ == / ] ; then
vb@815
     4
    lang=en
vb@815
     5
else
vb@818
     6
    if [ $1/ == -h/ -o $2/ != / ] ; then
vb@818
     7
        echo usage: $0 [ISO 639 language code]
vb@818
     8
        exit 0
vb@818
     9
    fi
vb@815
    10
    lang=$1
vb@815
    11
fi
vb@815
    12
vb@815
    13
trustwords.py -l $lang ` hexdump -vxn 10 /dev/random | sed -E 's/^[0-9a-z]+//'`