Skip to content

valnesfjord/pain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

.PAIN Image Format 🎨

What is this? 😱

PAIN is a deliberately inefficient image format that encrypts each pixel using SHA3-512 hashing. It's a joke format designed to make your CPU suffer.

Features ✨

  • 🐌 Extremely slow processing
  • πŸ’Ύ Massive file bloat
  • πŸ”₯ CPU-melting decryption
  • 🧡 Multi-threaded (but still painful)
  • 🎨 Supports any input image format
  • 😈 Perfect for torturing hardware

File Format Spec πŸ“‘

width:height;[SHA3-512(pixel1)];[SHA3-512(pixel2)];...

Each pixel is encoded as: 0xRRGGBBAA β†’ SHA3-512 hash

Usage πŸš€

Encrypt (relatively quick)

cargo run
> 1
> input.png

Decrypt (prepare to wait...)

cargo run
> 2
> encrypted.pain

Run test (10x10 image with blue color)

cargo run
> 3

Performance πŸ“Š

Operation Speed Pain Level
Encryption Okay ⚑ 😐
Decryption Glacial 🐌 😱
File Size Huge πŸ’Ύ 🀯

Why? πŸ€”

Because sometimes we need to remind ourselves that efficiency isn't everything.

License πŸ“œ

Public Domain - This crime against computing belongs to everyone.


Made with ❀️ and significant CPU abuse

About

.PAIN Image Format 🎨

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages