From f79ee0e3999dfd04af306aced213f20b7f8e0904 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Wed, 22 Apr 2015 15:06:49 +0200 Subject: initial commit --- gpg/card/README.md | 18 + gpg/card/dist/card.pdf | Bin 0 -> 27829 bytes gpg/card/makecard | 111 ++++ gpg/card/makecard-pdf | 4 + gpg/card/multiple.svg | 1548 ++++++++++++++++++++++++++++++++++++++++++++++++ gpg/card/single.svg | 129 ++++ 6 files changed, 1810 insertions(+) create mode 100644 gpg/card/README.md create mode 100644 gpg/card/dist/card.pdf create mode 100755 gpg/card/makecard create mode 100755 gpg/card/makecard-pdf create mode 100644 gpg/card/multiple.svg create mode 100644 gpg/card/single.svg (limited to 'gpg/card') diff --git a/gpg/card/README.md b/gpg/card/README.md new file mode 100644 index 0000000..137d68d --- /dev/null +++ b/gpg/card/README.md @@ -0,0 +1,18 @@ +# OpenPGP Business Cards + +Generate business cards with OpenPGP fingerprints. + +## Idea +Templates are designed as scalable vector graphics with a program such as inkscape. +Key values in the templates are replaced by values extracted from GnuPG keys. + +## Usage +Run `makecard -h` for a description of available options. + +## Example +See `dist` folder for examples. + +## Dependencies + - GnuPG + - qrencode + - *optional* inkscape to convert SVGs to PDFs \ No newline at end of file diff --git a/gpg/card/dist/card.pdf b/gpg/card/dist/card.pdf new file mode 100644 index 0000000..c484212 Binary files /dev/null and b/gpg/card/dist/card.pdf differ diff --git a/gpg/card/makecard b/gpg/card/makecard new file mode 100755 index 0000000..cf6be0b --- /dev/null +++ b/gpg/card/makecard @@ -0,0 +1,111 @@ +#!/bin/bash +# +# Creates an OpenPGP fingerprint business card. +# This script uses an SVG file as a template and replaces +# values such as $NAME and $FINGERPRINT with contents extracted +# from a key. +# +# Note that this script uses "gpg --with-colons" to parse key information. +# Documentation on the returned format can be found in "doc/DETAILS" +# of the GnuPG distribution. + +set -e + +# Show help +print_usage() { +cat <<- EOF +makecard - Create business cards with GnuPG + + $0 [-t template] gpgid + +Print an SVG business card containing an OpenPGP fingerprint to standard output. + + -t template + Use the file