Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea] Mention an alternative way of backing up the binary file #13

Open
jose1711 opened this issue Dec 19, 2019 · 0 comments
Open

[Idea] Mention an alternative way of backing up the binary file #13

jose1711 opened this issue Dec 19, 2019 · 0 comments

Comments

@jose1711
Copy link

Approx. 11.5 KB (highest ECC level) to 13.7 KB (lowest ECC level) of 8-bit data can be encoded just by using qrencode (using structured symbols) and imagemagick. Maybe this could be mentioned in the README as an alternative for people looking for ways to store some binary data (instead of going through base64).

curl -s https://www.gnu.org/software/gettext/manual/gettext.txt | dd bs=1 count=14100 2>/dev/null >/tmp/gettext.txt
qrencode -S -8 -v30 -o /tmp/qr.png -r /tmp/gettext.txt
montage /tmp/qr-*.png -geometry 640x640 /tmp/qr_complete.pdf
# restore the file
zbarimg --raw /tmp/qr_complete.pdf >/tmp/gettext.txt.restored
# verify (perhaps we can ignore the added newline)
diff /tmp/gettext.txt /tmp/gettext.txt.restored 

395c395
< males or females.  Besides, 
\ No newline at end of file
---
> males or females.  Besides, 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant