Difference between revisions of "BHNT67/Paperback"

From Berlin Hack & Tell Wiki
Jump to: navigation, search
Line 1: Line 1:
* Re: TPK Archival https://www.mail-archive.com/gnupg-users@gnupg.org/msg10827.html
+
* "I am looking for a tool that to export a GPG private key to a Data Matrix 2d barcode for long-term archival"
 +
: TPK Archival https://www.mail-archive.com/gnupg-users@gnupg.org/msg10826.html
 
* HOWTO Backup your GnuPG secret key on paper · /dev/schnouki https://schnouki.net/posts/2010/03/22/howto-backup-your-gnupg-secret-key-on-paper/
 
* HOWTO Backup your GnuPG secret key on paper · /dev/schnouki https://schnouki.net/posts/2010/03/22/howto-backup-your-gnupg-secret-key-on-paper/
 
* Paper SSH & GPG key backups | piggott.me.uk https://www.piggott.me.uk/2015/05/20/paper-ssh-gpg-key-backups/
 
* Paper SSH & GPG key backups | piggott.me.uk https://www.piggott.me.uk/2015/05/20/paper-ssh-gpg-key-backups/

Revision as of 00:38, 29 January 2019

  • "I am looking for a tool that to export a GPG private key to a Data Matrix 2d barcode for long-term archival"
TPK Archival https://www.mail-archive.com/gnupg-users@gnupg.org/msg10826.html
Hier ist unser Pad für PaperBak und Co., begonnen am 04.11.2015
(helle Farben sind besser)

Links:
 * https://startpage.com/do/search?q=Long-term+archiving+of+digital+data+on+microfilm&lui=deutsch&l=deutsch
 * http://publik.tuwien.ac.at/files/PubDat_191964.pdf Long-term archiving of digital data on microfilm (2010)
 * 
 * 

Woher hats du zbarimng 
hatte Dir berichtet, dass mein build von github nicht ging. 

https://github.com/ZBar/ZBar

./configure 
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu 
configure: error: cannot find install-sh, install.sh, or shtool in  config "."/config 
Dann habe ich von software.opensuse.org "zbar" geladen, das enthält zbarimg 

und dmtxwrite? Sind die in irgendwelchen standard-suse-paketen dabei oder hast du diese selbstgebaut? https://github.com/dmtx/dmtx-utils

ich habe mich mit QR- und Datamatrix beschäftigt. Gebe jetzt erstmal auf. Anbei ein Testprogramm, darin habe ich meine bisher gefundenen Probleme aufgeführt.
      
Vielleicht weißt Du Rat. Eigentlich bin ich jetzt ganz scharf, ein vernünftiges Verfahren zu haben.
      
Übrigens: Die Datendichte mit QR oder DMTX ist nicht so hoch wie bei Paperbak... das Thema legen wir erstmal zur Seite.

"If you have a good laser printer with the 600 dpi resolution,  you can save up to 500,000 bytes of uncompressed data on the single A4/Letter sheet. Integrated packer allows for much better data density - up to 3,000,000+ (three megabytes) of C code per page."
      
      
      #!/bin/bash
      
      # coding and decoding of a file into QR- or Datamatrix-codes
      # codecode.sh <infile>
      
      # Literature / sources:
      # https://www.mail-archive.com/gnupg-users@gnupg.org/msg10827.html
      # https://schnouki.net/posts/2010/03/22/howto-backup-your-gnupg-secret-key-on-paper/
      # https://www.piggott.me.uk/2015/05/20/paper-ssh-gpg-key-backups/
      # http://blog.liw.fi/posts/qr-backup/
      # http://www.grant-trebbin.com/2015/05/encode-and-decode-file-backed-up-as.html
            
      # QR code
      
      qrchunk=1024
      
      split -a 2 -b $qrchunk -d $1 $1.chunk-
      for file in ./$1.chunk-*; do qrencode -8 -l M -o $file.png <       $file; rm $file; done
      montage -label '%f' $1.chunk-*.png -geometry '1x1<' -tile 2x       $1-qr.png
      # 2x3 pro Seite (image)
      # montage -label '%f' $1.chunk-*.png -geometry '1x1<' -tile 2x3       $1-qr.png
      rm $1.chunk-*.png
      
      # QR decode
      zbarimg --raw $(ls $1-qr*.png | sort -n) > $1_qr-decoded
      # Problem 1: $1_qr-decoded != $1
            
      # Datamatrix code
      dmtxchunk=512
      
      split -a 2 -b $dmtxchunk -d $1 $1.chunk-
      for file in ./$1.chunk-*; do dmtxwrite -e 8 $file > $file.png;       rm $file; done
      montage -label '%f' $1.chunk-*.png -geometry '1x1<' -tile 2x       $1-dmtx.png
      # 2x3 pro Seite (image)
      # montage -label '%f' $1.chunk-*.png -geometry '1x1<' -tile 2x3       $1-dmtx.png
      rm $1.chunk-*.png
      
      # Datamatrix decode
      # Problem 2: dmtxread kann nicht mehrere           image files einlesen
        # Problem 3: dmtxread hat auch Probleme, wenn mehrere           (oder zu viele?) Datamatrix-Codes in einem Image sind
      # dmtxread $(ls $1-dmtx*.png | sort -n) > $1_dmtx-decoded