Skip to content

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgcrypt-67

Don't want your images scraped for an LLM training set?
Don't have a GPU for nightshade or glaze?
Only have a centrino?

This script cuts your art into 6x7 pieces.
Then shuffles & rotates the blocks with an ARGON2 key.

This forces all scrapers to spend 6-7 seconds hashing in order to unshuffle the image.

Grid dimension is configurable via changing the grid variable of USERMATRIX.
Encryption + decryption time can be increased by incrementing TIME_COST & MEMORY_COST to higher values.

DISCLOSURE

You may need to set TIME_COST=6 & MEMORY_COST=7,000,000 or higher values to actually deter scraping, but this is computationally very resource heavy

PRODUCTION USE

For Production Use, share the ideally unique-per-image passphrase & nonce values only with users you trust (ie: clients, subscribers & recruiters).
So say out of 67 artworks, leave 7 unshuffled as a preview.
Shuffle the remaining 60 (without publicly posting the passphrase & nonce) to control who views them fully.

Shuffler67 code modified from @gabrielstork's work.

Added 18/7/2026

I've added a feature that converts your art into a webm & avi with a glitch layer. You can adjust the pixel compression via changing the spatial_step variables found in shuffler67.py to lower (less compression) or higher (more compression). Ie:

12 > 4
26 > 16
30 > 20

Do enter an ideally unique sentence with more than 31 words to generate the randomness!

The Prismriver Sisters (Purizumuribaa San-shimai) are three poltergeist named Lunasa Prismriver, Merlin Prismriver and Lyrica Prismriver, together appearing as the stage 4 boss of Perfect Cherry Blossom. Lunasa, Merlin, and Lyrica form the band called the "Prismriver Ensemble". They live at the Ruined Western Mansion and perform at parties and festivals. There was also a fourth Prismriver sister, named Layla Prismriver, who created the others based on her original sisters. 
protected-IOSYS_ska.jpg.webm

Installation & Startup

Installation:

python3 -m venv .venv
source .venv/bin/activate
pip install pycryptodome
pip install numpy
pip install opencv-python
pip install Pillow
pip install imageio
pip install av
pip install argon2-cffi
deactivate

Do not forget to copy the image_shuffler67 folder into the directory where the above python venv exists.

Operation:

source .venv/bin/activate
python3 img67hashcrypt.py
deactivate

Try decrypting this image!

what_a_funky

  • passphrase: flandre
  • nonce: 5qfMQdPZwYFE4/xYE0fLqw==

Credits

ZOMG WATCH THIS

WAOW

About

hash encrypt thine images

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages