Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/valnesfjord/pain

.PAIN Image Format ๐ŸŽจ
https://github.com/valnesfjord/pain

Last synced: 10 days ago
JSON representation

.PAIN Image Format ๐ŸŽจ

Awesome Lists containing this project

README

        

# .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_