Skip to content

Instantly share code, notes, and snippets.

@stepahn
Created January 8, 2015 15:03
Show Gist options
  • Save stepahn/da2911de9c11cdd78885 to your computer and use it in GitHub Desktop.
Save stepahn/da2911de9c11cdd78885 to your computer and use it in GitHub Desktop.
qr key
gpg --export-secret-key KEY_ID | paperkey --output-type raw | base64 | tr -d '\n\r' | fold -w 80 | split -l 4;
for i in x*; do cat $i | qrencode -l H -v 3 -s 10 -d 300 -o $i.png; done
zbarimg --quiet --raw *.png | grep -e '^$' -v | tr -d '\n\r' | base64 -D | paperkey --pubring ~/.gnupg/pubring.gpg | gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment