Guest User

Untitled

a guest
Aug 31st, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. # Heavily depends on:
  2. # libqrencode (fukuchi.org/works/qrencode/)
  3. # paperkey (jabberwocky.com/software/paperkey/)
  4. # zbar (zbar.sourceforge.net)
  5.  
  6. # Producing the QR codes:
  7. # Split over 4 codes to ensure the data per image is not too large.
  8. gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp
  9. split temp -n 4 IMG
  10. for f in IMG*; do cat $f | qrencode -o $f.png; done
  11.  
  12. # Importing the QR codes:
  13. # Note that, when making scans or photographs, you do not produce large images.
  14. # If zbar does not recognise your QR code, try downscaling the image.
  15. for f in IMG*.png; do zbarimg --raw $f | head -c -1 > $f.out ; done
  16. cat *.out | base64 -d | paperkey --pubring ~/.gnupg/pubring.gpg | gpg --import
Add Comment
Please, Sign In to add comment