Secure • Deterministic • Authenticated Image Protection
pinlock-img is a password-based image protection tool for PNG files.
It ensures:
- No silent corruption
- Safe failure on wrong password
- Tamper detection via authentication
- PBKDF2-HMAC-SHA256
- 200,000 iterations
- Salt:
pinlock-img-v9
- XOR Seed (16 bytes) → deterministic noise stream
- Authentication Key (16 bytes) → HMAC-SHA256
Encrypt-then-MAC design:
- Encrypt data
- Generate HMAC
- Store tag in PNG metadata (
pinlock_auth)
Decryption only proceeds after successful verification.
- XOR transform applied
- HMAC generated
- Tag embedded in PNG
.locksuffix added
- Extract HMAC
- Verify integrity
- If valid → decrypt
- If invalid → abort safely
- 🔐 Password-based protection
- 🛡️ HMAC-SHA256 authentication
- 📂 Batch processing
- 🧪 Dry-run mode
- 💾 Atomic file writes
Requires Python 3.8+
pip install numpy Pillowpython pinlock-img.py /path/to/file_or_directorypython pinlock-img.py /path/to/filesThen:
Dry Run? (y/n): y
- Strong authentication (HMAC-SHA256)
- PBKDF2 protects against brute-force
However:
- Uses deterministic XOR transformation
- Not equivalent to AES-GCM or modern AEAD
MIT License © 2026 Fox Hackerz
We build tools focused on:
- Cybersecurity
- Automation
- Developer tools
📌 GitHub: https://github.com/foxhackerzdevs
🦊 Join the pack. Build. Break. Secure.