Protect unintended copy of your images by hiding the key in plain sight
Project description
GetScrambled 
Description
GetScrambled is a simple library that allows you to scramble a image. No key is needed to unscramble the image, because the key is stored in the image itself (steganography and least significant bit). The image is scrambled by shuffling blocks of pixels. The size of the blocks can be set by the user.
The library uses pillow for image manipulation.
Example
from getscrambled.encode import encode
from PIL import Image
# Encode
image = Image.open("tests/data/baboon.png")
scrambled_image = encode(image, block_size=16)
scrambled_image.save("tests/artifacts/baboon_scrambled.png")
# Decode
from getscrambled.decode import decode
decoded_image = decode(scrambled_image)
decoded_image.save("tests/artifacts/baboon_decoded.png")
Original and scrambled image
 
Installation
pip install getscrambled
Development and testing
git clone https://github.com/Starmania/getscrambled
cd getscrambled
poetry install
poetry run pytest
Disclaimer 
This library is not meant to be used for security purposes nor to encrypt data. It will just make harder to see the original image. You could check that I never use the word "encrypt" in this repository.
Todo
- More tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for getscrambled-1.0.0-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e3d784e3ab8ae8a63b8861fe30de0985e7d4b1988b6ce9df12b63e3a4f5648b0 |
|
| MD5 | c12c90bed843023ff9994950149c9107 |
|
| BLAKE2b-256 | 712238df6b954fe6fbe6147c289b5074bb125d409ca7b220a3fe9ee759ba592f |