Difference between revisions of "BHNT67/Paperback"
(→Bitcoin paperwallet, paperkey, paperbank) |
|||
(28 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | Presented as "Paperback Part 1" on [https://berlinhackandtell.rocks/2019-01-29-no67-hacking-memories Berlin Hack & Tell Episode "Hacking Memories"] BHNT 67 c-base Berlin, 2019-01-29 | ||
+ | |||
+ | |||
+ | * This page is now featured/mentioned on https://www.monperrus.net/martin/store-data-paper by Martin Monperrus . --[[User:Wikinaut|Wikinaut]] ([[User talk:Wikinaut|talk]]) 13:47, 24 April 2020 (CEST) | ||
+ | |||
+ | |||
+ | === Digital data archiving on paper === | ||
+ | * Paper Data Storage Option (2009) | ||
+ | : https://blog.codinghorror.com/the-paper-data-storage-option/ | ||
+ | * Die ganze deutsche oder englische Wikipedia ausdrucken: | ||
+ | : https://en.wikipedia.org/wiki/Print_Wikipedia Print Wikipedia is an art project by Michael Mandiberg that printed 106 of the 7,473 volumes of English Wikipedia as it existed on April 7, 2015. Die ganze deutschsprachige Wikipedia auszudrucken und zu binden, würde derzeit (Stand 201603) 3406 Bände benötigen. Auf Bücherregalen aufgereiht, würde die deutschsprachige Wikipedia ein ganzes Zimmer füllen. Insgesamt umfasst die deutsche Wikipedia fast zwei Millionen Artikel, weltweit sind es 37 Millionen. Das Projekt sei Kunstwerk und Datenvisualisierung zugleich, sagt Mandiberg. | ||
+ | : https://www.sueddeutsche.de/digital/kunstausstellung-einmal-die-wikipedia-ausdrucken-bitte-1.3009520 | ||
* "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 (200903) | * "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 (200903) | ||
: https://www.mail-archive.com/gnupg-users@gnupg.org/msg10826.html | : https://www.mail-archive.com/gnupg-users@gnupg.org/msg10826.html | ||
Line 5: | Line 17: | ||
* Paper SSH & GPG key backups | piggott.me.uk (201505) | * Paper SSH & GPG key backups | piggott.me.uk (201505) | ||
: https://www.dhpiggott.net/2015/05/20/paper-ssh-gpg-key-backups/ | : https://www.dhpiggott.net/2015/05/20/paper-ssh-gpg-key-backups/ | ||
− | |||
− | |||
− | |||
− | |||
* Grant Trebbin: Simple Data Backup with Paper Based QR Codes (201505) | * Grant Trebbin: Simple Data Backup with Paper Based QR Codes (201505) | ||
: http://www.grant-trebbin.com/2015/05/encode-and-decode-file-backed-up-as.html | : http://www.grant-trebbin.com/2015/05/encode-and-decode-file-backed-up-as.html | ||
Line 16: | Line 24: | ||
* Cryptographi: Piper: A bitcoin hardware paper wallet printer (stopped selling it in 201609) | * Cryptographi: Piper: A bitcoin hardware paper wallet printer (stopped selling it in 201609) | ||
: https://cryptographi.com/pages/support | : https://cryptographi.com/pages/support | ||
− | * PaperBack (2007-2013; Windows) | + | |
+ | === PaperBack === | ||
+ | * PaperBack (2007-2013; Windows). Original page where it all began. "PaperBack is a free application that allows you to back up your precious files on the ordinary paper in the form of the oversized bitmaps." | ||
: http://ollydbg.de/Paperbak/ | : http://ollydbg.de/Paperbak/ | ||
− | * Paperbak: Back up your files on ordinary paper in the form of oversized bitmaps This goal of this project is to: i) document the process by which Paperbak is built ii) fix its crypto implementation | + | |
+ | ==== List of similar projects ==== | ||
+ | * https://startpage.com/do/search?q=Long-term+archiving+of+digital+data+on+microfilm&lui=deutsch&l=deutsch | ||
+ | * List of similar projects https://github.com/Wikinaut/paperbackup/blob/patch-1/README.md | ||
+ | * https://github.com/Rupan/paperbak/wiki Overview page about Paperbak, what references it and sister-projects, link list | ||
+ | |||
+ | ==== forks ==== | ||
+ | * Rupan/Paperbak: Back up your files on ordinary paper in the form of oversized bitmaps This goal of this project is to: i) document the process by which Paperbak is built ii) fix its crypto implementation | ||
: https://github.com/Rupan/paperbak | : https://github.com/Rupan/paperbak | ||
− | : https://github.com/Rupan/paperbak/issues/1 | + | : https://github.com/Rupan/paperbak/issues/1 Bounty |
− | |||
* This project aims to port https://github.com/Rupan/paperbak into python cross-platform application | * This project aims to port https://github.com/Rupan/paperbak into python cross-platform application | ||
: https://github.com/BrnoPCmaniak/python-paperbak/ (201705) | : https://github.com/BrnoPCmaniak/python-paperbak/ (201705) | ||
− | |||
* paperbackup.py: Create a pdf with barcodes to backup text files on paper. Designed to backup ASCII-armored GnuPG and SSH key files and ciphertext. (201811) | * paperbackup.py: Create a pdf with barcodes to backup text files on paper. Designed to backup ASCII-armored GnuPG and SSH key files and ciphertext. (201811) | ||
: https://github.com/intra2net/paperbackup | : https://github.com/intra2net/paperbackup | ||
− | |||
* Tuxlifan/paperbackup: Should behave the same as this paperbackup but with using reportlab instead of PyX/LaTeX for PDF generation. (201809) | * Tuxlifan/paperbackup: Should behave the same as this paperbackup but with using reportlab instead of PyX/LaTeX for PDF generation. (201809) | ||
: https://github.com/tuxlifan/paperbackup | : https://github.com/tuxlifan/paperbackup | ||
Line 33: | Line 47: | ||
* Easy Paper Backups of ASCII PGP Keys: Shell scripts to convert between ascii armor PGP keys and QR codes for paper backup. (201707) | * Easy Paper Backups of ASCII PGP Keys: Shell scripts to convert between ascii armor PGP keys and QR codes for paper backup. (201707) | ||
: https://github.com/4bitfocus/asc-key-to-qr-code (see also its forks) | : https://github.com/4bitfocus/asc-key-to-qr-code (see also its forks) | ||
− | + | * Cold store small files on paper as QR codes -- PGP keys, Bitcoin keys, Tox keys or any other small files in general. (201808) | |
− | + | : https://github.com/nurupo/paper-store | |
− | + | : [[File:nurupo-example.png]] | |
− | : | ||
− | |||
− | |||
− | |||
− | |||
=== References and further resources === | === References and further resources === | ||
Line 60: | Line 69: | ||
* 2012 QR codes for backup ? http://blog.liw.fi/posts/qr-backup/ | * 2012 QR codes for backup ? http://blog.liw.fi/posts/qr-backup/ | ||
* 2013 Generating QR Codes in Linux http://www.linux-magazine.com/Online/Features/Generating-QR-Codes-in-Linux | * 2013 Generating QR Codes in Linux http://www.linux-magazine.com/Online/Features/Generating-QR-Codes-in-Linux | ||
+ | * generating QR codes with javascript in the browser https://www.jsqr.de/encode.html | ||
+ | * https://github.com/rugk/offline-qr-code (#35C3 Lightning Talk https://github.com/rugk/offline-qr-code-35c3 and [https://media.ccc.de/v/35c3-9566-lightning_talks_day_2#t=6331 recording]) | ||
+ | * Decoding QR codes in the browser https://github.com/LazarSoft/jsqrcode and https://webqr.com/ and others | ||
=== Archiving PGP/GPG keys on paper === | === Archiving PGP/GPG keys on paper === | ||
Line 101: | Line 113: | ||
: http://ronja.twibright.com/optar/ | : http://ronja.twibright.com/optar/ | ||
: [[File:Optar_closeup.png]] | : [[File:Optar_closeup.png]] | ||
− | * paperback-cli: Relatively high density file backups on paper. Cross-platform CLI port of Ollydb. This is a repo copy and fork of https://git.teknik.io/scuti/paperback-cli by Surkeh. Paperback-cli is the crossplatform, backwards-compatible, command line version of Oleh Yuschuk’s PaperBack. Originally designed to print encoded data directly to paper, it has been simplified to focus on encoding and decoding bitmaps that can be written to any printable media via whatever printing mechanism is available to your system. Recommended for small files such as cryptocurrency wallets, key revocation certificates, password databases, and any other important data only a few megabytes large. While the capacity is small compared to conventional storage media, this program encodes or decodes non-electronic backups characteristically resilient to or unaffected by electromagnetic disturbance, water, and heat. (201701) | + | |
+ | === paperback-cli === | ||
+ | * '''paperback-cli''': | ||
+ | : Relatively high density file backups on paper. Cross-platform CLI port of Ollydb. | ||
+ | : This is a repo copy and fork of https://git.teknik.io/scuti/paperback-cli by Surkeh. Paperback-cli is the crossplatform, backwards-compatible, command line version of Oleh Yuschuk’s PaperBack. | ||
+ | : Originally designed to print encoded data directly to paper, it has been simplified to focus on encoding and decoding bitmaps that can be written to any printable media via whatever printing mechanism is available to your system. Recommended for small files such as cryptocurrency wallets, key revocation certificates, password databases, and any other important data only a few megabytes large. | ||
+ | : While the capacity is small compared to conventional storage media, this program encodes or decodes non-electronic backups characteristically resilient to or unaffected by electromagnetic disturbance, water, and heat. (201701) | ||
: https://github.com/Wikinaut/paperback-cli | : https://github.com/Wikinaut/paperback-cli | ||
+ | {| | ||
+ | | [[File:D80-s100-printed-fine.png]] | ||
+ | | [[File:d80-s100.png|250px]] | ||
+ | | [[File:D80-s100-scanned-300dpi.png]] | ||
+ | | [[File:10-gray300dpi.png|250px]] | ||
+ | |} | ||
+ | <pre> | ||
+ | ./paperback-cli --encode -d 80 -s 100 -i in.txt -o d80-s100.bmp | ||
+ | #./paperback-cli --encode -d 80 -s 80 -i in.txt -o d80-s80.bmp | ||
+ | |||
+ | # print | ||
+ | # printing... | ||
+ | |||
+ | # scan with to gray-300dpi.png | ||
+ | # scanning... | ||
+ | |||
+ | convert scan-gray300dpi.png -type Palette -depth 8 -compress none bmp3:scan.bmp | ||
+ | ./paperback-cli --decode -i scan.bmp -o out.txt | ||
+ | Decoding scan.bmp into x.x | ||
+ | Reading scan.bmp... | ||
+ | Searching for raster... | ||
+ | Searching for grid lines... | ||
+ | Decoding | ||
+ | ngood: 474 | ||
+ | nbad: 0 | ||
+ | nsuper: 12 | ||
+ | nrestored: 324 | ||
+ | Page processed | ||
+ | File complete | ||
+ | File saved | ||
+ | </pre> | ||
+ | |||
: https://git.teknik.io/scuti/paperback-cli | : https://git.teknik.io/scuti/paperback-cli | ||
Line 123: | Line 173: | ||
<pre> | <pre> | ||
Hier ist unser Pad für PaperBak und Co., begonnen am 04.11.2015 | Hier ist unser Pad für PaperBak und Co., begonnen am 04.11.2015 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
https://github.com/ZBar/ZBar | https://github.com/ZBar/ZBar | ||
./configure | ./configure | ||
− | + | 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? | |
− | Dann habe ich von software.opensuse.org "zbar" geladen, das enthält zbarimg | ||
− | + | 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. | ||
− | |||
− | |||
− | |||
− | |||
Übrigens: Die Datendichte mit QR oder DMTX ist nicht so hoch wie bei Paperbak... das Thema legen wir erstmal zur Seite. | Ü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." | "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 | #!/bin/bash | ||
− | |||
# coding and decoding of a file into QR- or Datamatrix-codes | # coding and decoding of a file into QR- or Datamatrix-codes | ||
# codecode.sh <infile> | # codecode.sh <infile> | ||
Line 164: | Line 200: | ||
# QR code | # QR code | ||
− | + | ||
qrchunk=1024 | qrchunk=1024 | ||
Line 189: | Line 225: | ||
# Datamatrix decode | # Datamatrix decode | ||
− | # Problem 2: dmtxread kann nicht mehrere | + | # 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 | # dmtxread $(ls $1-dmtx*.png | sort -n) > $1_dmtx-decoded | ||
</pre> | </pre> |
Latest revision as of 18:51, 22 January 2023
Presented as "Paperback Part 1" on Berlin Hack & Tell Episode "Hacking Memories" BHNT 67 c-base Berlin, 2019-01-29
- This page is now featured/mentioned on https://www.monperrus.net/martin/store-data-paper by Martin Monperrus . --Wikinaut (talk) 13:47, 24 April 2020 (CEST)
Contents
Digital data archiving on paper
- Paper Data Storage Option (2009)
- Die ganze deutsche oder englische Wikipedia ausdrucken:
- https://en.wikipedia.org/wiki/Print_Wikipedia Print Wikipedia is an art project by Michael Mandiberg that printed 106 of the 7,473 volumes of English Wikipedia as it existed on April 7, 2015. Die ganze deutschsprachige Wikipedia auszudrucken und zu binden, würde derzeit (Stand 201603) 3406 Bände benötigen. Auf Bücherregalen aufgereiht, würde die deutschsprachige Wikipedia ein ganzes Zimmer füllen. Insgesamt umfasst die deutsche Wikipedia fast zwei Millionen Artikel, weltweit sind es 37 Millionen. Das Projekt sei Kunstwerk und Datenvisualisierung zugleich, sagt Mandiberg.
- https://www.sueddeutsche.de/digital/kunstausstellung-einmal-die-wikipedia-ausdrucken-bitte-1.3009520
- "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 (200903)
- HOWTO Backup your GnuPG secret key on paper · /dev/schnouki "Paper is a safe way to backup a secret key: ... If you want to store your GnuPG secret key on a paper sheet, it is quite simple to do." (201003)
- Paper SSH & GPG key backups | piggott.me.uk (201505)
- Grant Trebbin: Simple Data Backup with Paper Based QR Codes (201505)
- paperbank: Bitcoin Paper Key generator - using a thermal or photo pocket USB printer and a basic linux box (like a RaspberryPi) - Paper Wallet Generator (201602)
- https://github.com/makevoid/paperbank (201602)
- https://github.com/makevoid/paperbank-pocket (201803)
- Cryptographi: Piper: A bitcoin hardware paper wallet printer (stopped selling it in 201609)
PaperBack
- PaperBack (2007-2013; Windows). Original page where it all began. "PaperBack is a free application that allows you to back up your precious files on the ordinary paper in the form of the oversized bitmaps."
List of similar projects
- https://startpage.com/do/search?q=Long-term+archiving+of+digital+data+on+microfilm&lui=deutsch&l=deutsch
- List of similar projects https://github.com/Wikinaut/paperbackup/blob/patch-1/README.md
- https://github.com/Rupan/paperbak/wiki Overview page about Paperbak, what references it and sister-projects, link list
forks
- Rupan/Paperbak: Back up your files on ordinary paper in the form of oversized bitmaps This goal of this project is to: i) document the process by which Paperbak is built ii) fix its crypto implementation
- This project aims to port https://github.com/Rupan/paperbak into python cross-platform application
- paperbackup.py: Create a pdf with barcodes to backup text files on paper. Designed to backup ASCII-armored GnuPG and SSH key files and ciphertext. (201811)
- Tuxlifan/paperbackup: Should behave the same as this paperbackup but with using reportlab instead of PyX/LaTeX for PDF generation. (201809)
- Easy Paper Backups of ASCII PGP Keys: Shell scripts to convert between ascii armor PGP keys and QR codes for paper backup. (201707)
- https://github.com/4bitfocus/asc-key-to-qr-code (see also its forks)
- Cold store small files on paper as QR codes -- PGP keys, Bitcoin keys, Tox keys or any other small files in general. (201808)
References and further resources
- 2009 Making Computer Backups - On Paper?! (Youtube video demonstration of Paperbak) https://www.youtube.com/watch?v=Q6UctIrZuz4
- 2010 Long-term archiving of digital data on microfilm
- This study shows that it is possible to store digital data (i.e., files or documents) on microfilm and to convert them back to a digital format. This offers a viable solution for the permanent storage of the original data streams as defined in most archival regimes in e-Government settings and long-term archives.
- http://publik.tuwien.ac.at/files/PubDat_191964.pdf
- 2012 "Paperbak lets you back up your files onto paper…yes paper! [Freeware]" http://www.redferret.net/?p=33146
- 2012 A paper-based backup solution (not as stupid as it sounds) http://www.extremetech.com/extreme/134427-a-paper-based-backup-solution-not-as-stupid-as-it-sounds#disqus_thread
- 1991 "Meine Geschichte über Rechenhilfsmittel" http://www.peterkernwein.de/Rechengeraete-Sammlung/paperdisk.htm
- 2012 "PaperBack: Backing up on… paper?" http://www.itproportal.com/2012/08/15/paperback-backing-up-on-paper/
- 2015 Simple Data Backup with Paper Based QR Codes http://www.grant-trebbin.com/2015/05/encode-and-decode-file-backed-up-as.html
- https://web.archive.org/web/20130714114549/http://en.wikipedia.org/wiki/List_of_Storage_hierarchy_media_with_costs (https://en.wikipedia.org/wiki/List_of_Storage_hierarchy_media_with_costs deleted page)
QR codes
- 2012 QR codes for backup ? http://blog.liw.fi/posts/qr-backup/
- 2013 Generating QR Codes in Linux http://www.linux-magazine.com/Online/Features/Generating-QR-Codes-in-Linux
- generating QR codes with javascript in the browser https://www.jsqr.de/encode.html
- https://github.com/rugk/offline-qr-code (#35C3 Lightning Talk https://github.com/rugk/offline-qr-code-35c3 and recording)
- Decoding QR codes in the browser https://github.com/LazarSoft/jsqrcode and https://webqr.com/ and others
Archiving PGP/GPG keys on paper
- 2015 Paper SSH & GPG key backups (talking about Datamatrix and QR) https://www.piggott.me.uk/2015/05/20/paper-ssh-gpg-key-backups/
- 2010 HOWTO Backup your GnuPG secret key on paper https://schnouki.net/posts/2010/03/22/howto-backup-your-gnupg-secret-key-on-paper/
- 2009 Datamatrix dmtxread and dmtxwrite "I am looking for a tool that to export a GPG private key to a DataMatrix 2d barcode for long-term archival." TPK Archival https://www.mail-archive.com/gnupg-users@gnupg.org/msg10827.html David Shaw
Bitcoin paperwallet, paperkey, paperbank
- Paperwallet
- https://en.bitcoin.it/wiki/Paper_wallet
- https://blockchain.info/wallet/paper-tutorial
- https://www.bitaddress.org
- Bitcoin Paper Key - using a thermal USB printer and a basic linux box (like a Raspberry Pi) - Bitcoin Paper Wallet Generator https://github.com/makevoid/paperbank/
- http://cryptographi.com/pages/support/
- Paperkey - an OpenPGP key archiver by David Shaw. Due to metadata and redundancy, OpenPGP secret keys are significantly larger than just the "secret bits". In fact, the secret key contains a complete copy of the public key. Since the public key generally doesn't need to be escrowed (most people have many copies of it on various keyservers, web pages, or similar), only archiving the secret parts can be a real advantage. Paperkey extracts just those secret bytes and prints them. A reasonable way to achieve a long term backup of OpenPGP (GnuPG, PGP, etc) keys is to print them out on paper. Paper and ink have amazingly long retention qualities - far longer than the magnetic or optical means that are generally used to back up computer data. (2007-2018)
- Producing printable QR codes for persistent storage of GPG private keys (201510)
- easy-gpg-to-paper aims to make exporting your secret gpg key to paper, and then restoring from paper, an easy and painless process.
- Making Computer Backups - On Paper?! Youtube video of PaperBack v1.00 (200907)
- Paperbak lets you back up your files onto paper…yes paper! [Freeware] | The Red Ferret Journal (201208)
- A paper-based backup solution (not as stupid as it sounds) | ExtremeTech (201208)
- Meine Geschichte über Rechenhilfsmittel: Die Computerzeitschriften der 1970er Jahre enthielten oft seitenlange Listings, die recht mühsam abgetippt werden mussten. Die Zeitschrift mc - Magazin für Computerpraxis wollte hier Abhilfe schaffen und entwickelte die mc-Paperdisk. (201302)
- dvdisaster: dvdisaster is a computer program aimed to enhance data survivability on optical discs by creating error detection and correction data, which is used for data recovery. dvdisaster works exclusively at the (iso) image level.
http://dvdisaster.net/de/download.html(dead page, 201901) | Manual (from archive.org)- https://www.heise.de/download/product/dvdisaster-22039
- https://en.wikipedia.org/wiki/Dvdisaster
- https://github.com/lrq3000/dvdisaster
- PaperBack: Backing up on… paper? | ITProPortal.com
- Optar stands for OPTical ARchiver. It's a codec for encoding data on paper or free software 2D barcode in other words. Optar fits 200kB on an A4 page, then you print it with a laser printer. If you want to read the recording, scan it with a scanner and feed into the decoder program. A practical level of reliability is ensured using forward error correction code (FEC). Automated processing of page batches facilitates storage of files larger than 200kB. (2016?)
paperback-cli
- paperback-cli:
- Relatively high density file backups on paper. Cross-platform CLI port of Ollydb.
- This is a repo copy and fork of https://git.teknik.io/scuti/paperback-cli by Surkeh. Paperback-cli is the crossplatform, backwards-compatible, command line version of Oleh Yuschuk’s PaperBack.
- Originally designed to print encoded data directly to paper, it has been simplified to focus on encoding and decoding bitmaps that can be written to any printable media via whatever printing mechanism is available to your system. Recommended for small files such as cryptocurrency wallets, key revocation certificates, password databases, and any other important data only a few megabytes large.
- While the capacity is small compared to conventional storage media, this program encodes or decodes non-electronic backups characteristically resilient to or unaffected by electromagnetic disturbance, water, and heat. (201701)
- https://github.com/Wikinaut/paperback-cli
./paperback-cli --encode -d 80 -s 100 -i in.txt -o d80-s100.bmp #./paperback-cli --encode -d 80 -s 80 -i in.txt -o d80-s80.bmp # print # printing... # scan with to gray-300dpi.png # scanning... convert scan-gray300dpi.png -type Palette -depth 8 -compress none bmp3:scan.bmp ./paperback-cli --decode -i scan.bmp -o out.txt Decoding scan.bmp into x.x Reading scan.bmp... Searching for raster... Searching for grid lines... Decoding ngood: 474 nbad: 0 nsuper: 12 nrestored: 324 Page processed File complete File saved
ColorSafe
- A colorized data storage scheme for printing on paper.
1 bit (BW; default) | 2 bit (CMY+White) | 3 bit (BW+RGB+CMY) |
PaperBak (memo)
- paperbak (memo)
Hier ist unser Pad für PaperBak und Co., begonnen am 04.11.2015 https://github.com/ZBar/ZBar ./configure 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. Ü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