laser-cut-templates/visual-cryptography
Henning Jacobs 3e8ca2faa4 add row mnemonic (random) 2021-07-31 21:24:40 +02:00
..
3x3.bdf complete 7bit 3x3 font 2021-07-31 20:19:26 +02:00
3x3.svg 3x3: add spacing 2021-02-13 17:19:25 +01:00
7segment.svg 3x3 glyphs 2021-02-07 12:28:28 +01:00
README.md increase default width to 5 cols (19 pixels) 2021-02-14 12:45:53 +01:00
bitocra.bdf allow different fonts 2021-01-23 19:07:33 +01:00
generate-glyph-table.py add row mnemonic (random) 2021-07-31 21:24:40 +02:00
hexagons.svg output file as CLI arg 2021-02-12 21:38:23 +01:00
poetry.lock mnemonic words as column headers 2021-07-31 21:13:09 +02:00
pyproject.toml mnemonic words as column headers 2021-07-31 21:13:09 +02:00
render.py circular layout 2021-03-02 21:50:13 +01:00
tom-thumb.bdf visual cryptography experiment 2020-12-31 18:18:30 +01:00

README.md

Visual Cryptography

Generate visual cryptography cards to laser cut.

Usage:

poetry install
poetry run ./render.py --text=MyText out.svg

To render all glyphs of the 3x3 font:

poetry run ./render.py test.svg --only-data-bits --font 3x3.bdf --width=32 --height=44 --space-x=0.6 --space-y=0.6 --card-width=150 --card-height=200 --text '"'"'"'+,-./0123456789:<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdfhijlmnoruv{}~' --skip-rows=4 --skip-cols=4 --shape=3dots

Fonts

  • 3x3.bdf: very small 3x3 pixel font, not all characters are available (best used with --skip-cols and --skip-rows set to 4)
  • tom-thumb.bdf: small 5x7 pixel font, all ASCII characters available (best used with --skip-cols=4 and --skip-rows=6)
  • bitocra.bdf: large OCR font

Examples

Generate cards with the letters A-K on two rows using the default font tom-thumb.bdf:

poetry run ./render.py out.svg --skip-cols=4 --skip-rows=6 --text=ABCDEFGHIJK --space-x=0.6 --space-y=0.6