Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valnesfjord/pain
.PAIN Image Format ๐จ
https://github.com/valnesfjord/pain
Last synced: 10 days ago
JSON representation
.PAIN Image Format ๐จ
- Host: GitHub
- URL: https://github.com/valnesfjord/pain
- Owner: valnesfjord
- Created: 2024-12-11T14:12:10.000Z (12 days ago)
- Default Branch: master
- Last Pushed: 2024-12-11T14:25:42.000Z (12 days ago)
- Last Synced: 2024-12-11T15:29:39.322Z (12 days ago)
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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_