Skip to content

Instantly share code, notes, and snippets.

@DDoop
DDoop / imgcrypt.py
Last active January 5, 2025 18:42
Hides a signature at a random offset inside the RGB data of an image file. Relies on CRC32. Written & tested on Linux
import subprocess
from PIL import Image
from random import randrange
class ByteStreamReader:
chunk_length = 32
hash_length = 8
def __init__(self, bytearr):