db/mkpass
author us@chu.huenfield.org
Tue, 25 Dec 2018 14:46:45 +0100
branchsync
changeset 3209 c15b4ca2b52a
parent 3121 f33a2ae77177
permissions -rw-r--r--
Replace use of Sequoia's backend with a custom key store.

- Sequoia's key store doesn't meet pep's needs (in particular, the
ability to search on a key's user id) and trying to shoehorn pep's
needs onto Sequoia's key store abstractions is just introducing
overhead with no appreciable gain in functionality.

- This patch changes the Sequoia backend to use a local sqlite
database to store the public keys.
     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]+//'`