MA
MateuszGrabuszynski/dsb-visualcryptography
Visual cryptography program written with JavaScript and p5js framework.
Note: By no means is this code secure or validated. Treat as unchecked copy archived due to no changes planned.
Visual cryptography
Program allows ciphering an image onto two separate images (with noise). Only when output images are overlapped, the input image can be deciphered.
How-to cipher
- Press "Cipher" button at the top of the page,
- Set columns and rows and press "Set columns/rows" button,
- Click onto input net on the left side,
- Press "Cipher >>" button to create new shares,
- Optionally press "<< Overlap" to check the ciphering result.
How-to decipher
- Press "Decipher" button at the top of the page,
- Write or paste your shares into textboxes at the bottom,
- Press "Show shares" to check if they are correct,
- Overlap shares by pressing "<< Overlap shares".
Warning
This program was written only for educational purposes. The author is aware that the noise level can be so high to make data deciphering impossible.
Examples
Ciphering
Heart ciphered onto two shares:
and overlapped:
Deciphering
Image that will be rewritten into textboxes:
inserted:
and overlapped:
Thanks to
Daniel Shiffman (https://github.com/shiffman)