PGP

Theory

 * here.
 * |PGP documentation
 * man-pages gpg 1.4.11
 * How to create a command-line password vault
 * password-store

Cheat Sheet
gpg [--homedir dir] [--options file] [options] command [args]
 * --gen-key: Generate a new key pair. This command is normally only used interactively. (batch mode, see doc/Details)
 * --gen-revoke name: Generate a revocation certificate for the complete key. To revoke a subkey or a signature, use the --edit command.
 * --desig-revoke name: Generate a designated revocation certificate for a key. This allows a user (with the  permission of the keyholder) to revoke someone else's key.
 * --edit-key: Present a  menu  which  enables  you  to  do most of the key management related tasks.  It expects the specification of a key on the command line. This one is massively cool.
 * --sign-key name: Signs a public key with your secret key. This is a  shortcut  version  of  the  subcommand "sign" from --edit.
 * --lsign-key name: Signs a public key with your secret key but marks it as non-exportable. This is a shortcut version of the subcommand "lsign" from --edit-key.

Working solution

 * Exported textfile from keepassx
 * Create GPG-key
 * Decrypt textfile, remove original.
 * follow this

Skript
TEMPFILE=`tempfile 2>/dev/null` || TEMPFILE=/tmp/`basename $0`.tmp trap "rm -f $TEMPFILE" 0 1 2 5 15 dialog --backtitle "Password Database" --title "Master Password" --clear --insecure --passwordbox "Enter the Password Database master password." 10 51 2> $TEMPFILE