Skip to content

Commit f3527c0

Browse files
committed
Initial commit
1 parent 2261367 commit f3527c0

3 files changed

Lines changed: 576 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Spore EP1 Steganography Encoder/Decoder in Python
2+
3+
This is an implementation of the steganography algorithm, which is used by Spore EP1 (Spore: Galactic Adventures) to store large amounts of additional data in .PNG files alongside thumbnails. In the vanilla EP1 expansion pack, this method is only used for scenarios (adventures), but every other asset type can be imported in this way.
4+
5+
Both encoding and decoding are supported.
6+
7+
### How to use
8+
You must use Python 3.10 or newer.
9+
10+
Clone the repository and install the requirements:
11+
12+
```bash
13+
git clone https://github.com/Spore-Community/Spore_EP1Stegano-Python.git
14+
cd Spore_EP1Stegano-Python
15+
pip install -r requirements.txt
16+
```
17+
18+
Here are examples of usage in the terminal:
19+
20+
| **Encode** | **Decode** |
21+
|:---------------------------------------------------------------:|:----------------------------------------------------:|
22+
| `python spore_ep1stegano.py encode C:\thumb.png C:\stegano.bin` | `python spore_ep1stegano.py decode C:\adventure.png` |
23+
24+
There is also a list of additional arguments:
25+
26+
| **Encode** | **Decode** |
27+
|:--------------------------:|:------------------------------:|
28+
| `--output_png_path *path*` | `--output_stegano_path *path*` |
29+
| `--no_zopfli` | `--no_validation` |

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
crcmod>=1.7
2+
pypng>=0.20220715.0
3+
zopfli>=0.2.3

0 commit comments

Comments
 (0)