# GetScrambled 
---
## Description
GetScrambled is a simple library that allows you to scramble a image. No key is needed to unscramble the image, because the key is stored in the image itself (steganography and least significant bit). The image is scrambled by shuffling blocks of pixels. The size of the blocks can be set by the user.
The library uses pillow for image manipulation.
## Example
```python
from getscrambled.encode import encode
from PIL import Image
# Encode
image = Image.open("tests/data/baboon.png")
scrambled_image = encode(image, block_size=16)
scrambled_image.save("tests/artifacts/baboon_scrambled.png")
# Decode
from getscrambled.decode import decode
decoded_image = decode(scrambled_image)
decoded_image.save("tests/artifacts/baboon_decoded.png")
```
### Original and scrambled image
 
## Installation
```bash
pip install getscrambled
```
## Development and testing
```bash
git clone https://github.com/Starmania/getscrambled
cd getscrambled
poetry install
poetry run pytest
```
## Disclaimer 
This library is not meant to be used for security purposes nor to encrypt data. It will just make harder to see the original image. You could check that I never use the word "encrypt" in this repository.
## Todo
- [ ] More tests
Raw data
{
"_id": null,
"home_page": "https://github.com/Starmania/getscrambled",
"name": "getscrambled",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Starmania",
"author_email": "wycvhrt6vzscfpedxr@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/af/2e/eb31d7b17b120e74e7540173371c4fdc97f54f5e25a421cd871214f30d9d/getscrambled-1.0.0.tar.gz",
"platform": null,
"description": "# GetScrambled \n\n---\n\n## Description\n\nGetScrambled is a simple library that allows you to scramble a image. No key is needed to unscramble the image, because the key is stored in the image itself (steganography and least significant bit). The image is scrambled by shuffling blocks of pixels. The size of the blocks can be set by the user.\n\nThe library uses pillow for image manipulation.\n\n## Example\n\n```python\nfrom getscrambled.encode import encode\nfrom PIL import Image\n\n# Encode\nimage = Image.open(\"tests/data/baboon.png\")\nscrambled_image = encode(image, block_size=16)\nscrambled_image.save(\"tests/artifacts/baboon_scrambled.png\")\n\n# Decode\nfrom getscrambled.decode import decode\ndecoded_image = decode(scrambled_image)\ndecoded_image.save(\"tests/artifacts/baboon_decoded.png\")\n```\n### Original and scrambled image\n \n\n## Installation\n\n```bash\npip install getscrambled\n```\n\n## Development and testing\n\n```bash\ngit clone https://github.com/Starmania/getscrambled\ncd getscrambled\npoetry install\npoetry run pytest\n```\n\n## Disclaimer \n\nThis library is not meant to be used for security purposes nor to encrypt data. It will just make harder to see the original image. You could check that I never use the word \"encrypt\" in this repository.\n\n## Todo\n\n- [ ] More tests\n",
"bugtrack_url": null,
"license": "CERN-OHL-P-2.0-1",
"summary": "Protect unintended copy of your images by hiding the key in plain sight",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/Starmania/getscrambled",
"Repository": "https://github.com/Starmania/getscrambled"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "712238df6b954fe6fbe6147c289b5074bb125d409ca7b220a3fe9ee759ba592f",
"md5": "c12c90bed843023ff9994950149c9107",
"sha256": "e3d784e3ab8ae8a63b8861fe30de0985e7d4b1988b6ce9df12b63e3a4f5648b0"
},
"downloads": -1,
"filename": "getscrambled-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c12c90bed843023ff9994950149c9107",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.9",
"size": 10107,
"upload_time": "2024-09-06T21:52:23",
"upload_time_iso_8601": "2024-09-06T21:52:23.482786Z",
"url": "https://files.pythonhosted.org/packages/71/22/38df6b954fe6fbe6147c289b5074bb125d409ca7b220a3fe9ee759ba592f/getscrambled-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "af2eeb31d7b17b120e74e7540173371c4fdc97f54f5e25a421cd871214f30d9d",
"md5": "bce3b729920f2563146a1061072a92ad",
"sha256": "61af6249df64736944b7e152f0af80182fd4adef6098d6fcb3c6738170fc7f4f"
},
"downloads": -1,
"filename": "getscrambled-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "bce3b729920f2563146a1061072a92ad",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.9",
"size": 8107,
"upload_time": "2024-09-06T21:52:25",
"upload_time_iso_8601": "2024-09-06T21:52:25.936706Z",
"url": "https://files.pythonhosted.org/packages/af/2e/eb31d7b17b120e74e7540173371c4fdc97f54f5e25a421cd871214f30d9d/getscrambled-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-06 21:52:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Starmania",
"github_project": "getscrambled",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "getscrambled"
}