Post

xor image tools

a demo of XOR, AND, and OR operations done on images

View the project on GitHub

One-time pads assume a few things. For one, the length of the key must be equal to the length of the message. The key should also be generated randomly (not psuedo-random). And of course, you must XOR the two values together and ensure that you never reuse the key. But what if instead of XOR, you do an AND? Or an OR?

Here’s what happens

showcase

I originally wanted to do this without dependencies (the PILLOW Image Processing Library) but PNGs are more than just pixel values in a file. And more than just magic bytes before pixel values in a file…

This post is licensed under CC BY 4.0 by the author.

Trending Tags