Skip to content

Instantly share code, notes, and snippets.

View barryirwin's full-sized avatar

Barry Irwin barryirwin

View GitHub Profile
@barryirwin
barryirwin / visual_cryptography_py3.py
Created February 5, 2022 22:16 — forked from deibit/visual_cryptography_py3.py
Visual Cryptography (Python3)
# Copyright, Robert Donovan, LessonStudio, 2014
# If you use this then tweet what you did with it @LessonStudio.
# This file takes one argument which is a file that you would like to split into two encrypted images.
# The original image can only be viewed by overlaying the two encrypted images.
# If printed on clear plastic, It can be very finicky to align the two images if the pixel count is too high.
# For best results keep the original image below 200x200 pixels and print as large as possible onto clear plastic to
# obtain the best results.
# You can go to higher resolutions but you then really have to be precise when aligning the two images.