Created
May 20, 2014 19:43
-
Star
(105)
You must be signed in to star a gist -
Fork
(26)
You must be signed in to fork a gist
-
-
Save joostrijneveld/59ab61faa21910c8434c to your computer and use it in GitHub Desktop.
Revisions
-
joostrijneveld created this gist
May 20, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ # Heavily depends on: # libqrencode (fukuchi.org/works/qrencode/) # paperkey (jabberwocky.com/software/paperkey/) # zbar (zbar.sourceforge.net) # Producing the QR codes: # Split over 4 codes to ensure the data per image is not too large. gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp split temp -n 4 IMG for f in IMG*; do cat $f | qrencode -o $f.png; done # Importing the QR codes: # Note that, when making scans or photographs, you do not produce large images. # If zbar does not recognise your QR code, try downscaling the image. for f in IMG*.png; do zbarimg --raw $f | head -c -1 > $f.out ; done cat *.out | base64 -d | paperkey --pubring ~/.gnupg/pubring.gpg | gpg --import