# <p align="center">PixCrypt</p>
### <p align="center">Library for encrypting text into an image</p>
## Usage
### Encrypting text to image
```py
from pixcrypt import PixImage
src = 'Hello World!'
pix = PixImage(text=src)
img = pix.getimage()
img.save('hello_world.png')
```
If you will be decrypting the image, save the file in PNG format. You can also specify a maximum width for the image:
```py
img = pix.getimage(max_width=12)
```
### Decrypting image into text
```py
from pixcrypt import PixImage
pix = PixImage('hello_world.png')
text = pix.getstr()
print(text) # Hello World!
```
```PixImage``` can take an Image class object from Pillow as an argument:
```py
pix = PixImage(text='some info')
pix2 = PixImage(pix.getimage())
text = pix2.getstr()
print(text) # some info
```
Raw data
{
"_id": null,
"home_page": null,
"name": "PixCrypt",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "pixcrypt pillow image encryption python",
"author": "ALhorm",
"author_email": "gladkoam@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/92/09/082ea8ffa6ffdc22fde5f2206b1d21a94515dff3fa9a3445ec1152735657/PixCrypt-1.1.0.tar.gz",
"platform": null,
"description": "# <p align=\"center\">PixCrypt</p>\r\n### <p align=\"center\">Library for encrypting text into an image</p>\r\n\r\n## Usage\r\n### Encrypting text to image\r\n```py\r\nfrom pixcrypt import PixImage\r\n\r\nsrc = 'Hello World!'\r\npix = PixImage(text=src)\r\nimg = pix.getimage()\r\n\r\nimg.save('hello_world.png')\r\n```\r\nIf you will be decrypting the image, save the file in PNG format. You can also specify a maximum width for the image:\r\n```py\r\nimg = pix.getimage(max_width=12)\r\n```\r\n### Decrypting image into text\r\n```py\r\nfrom pixcrypt import PixImage\r\n\r\npix = PixImage('hello_world.png')\r\ntext = pix.getstr()\r\n\r\nprint(text) # Hello World!\r\n```\r\n```PixImage``` can take an Image class object from Pillow as an argument:\r\n```py\r\npix = PixImage(text='some info')\r\npix2 = PixImage(pix.getimage())\r\ntext = pix2.getstr()\r\n\r\nprint(text) # some info\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Library for encrypting text into an image",
"version": "1.1.0",
"project_urls": null,
"split_keywords": [
"pixcrypt",
"pillow",
"image",
"encryption",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "564f4152113e6a7a537d74bcf394e8cb4008fbc8789c7fd6a71eedfed7871ddb",
"md5": "5f2cf936794c7d437bd6507084889161",
"sha256": "0c61ce762f17e1619537ba5cca877b394121f382914540dd2195903b8ad5fc4a"
},
"downloads": -1,
"filename": "PixCrypt-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5f2cf936794c7d437bd6507084889161",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 3442,
"upload_time": "2024-05-01T06:24:19",
"upload_time_iso_8601": "2024-05-01T06:24:19.989033Z",
"url": "https://files.pythonhosted.org/packages/56/4f/4152113e6a7a537d74bcf394e8cb4008fbc8789c7fd6a71eedfed7871ddb/PixCrypt-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9209082ea8ffa6ffdc22fde5f2206b1d21a94515dff3fa9a3445ec1152735657",
"md5": "8e7c6a249a1c778c921d95cff878ae22",
"sha256": "1be07fd371a2c9a4ac7aedc94d0293fca4cead2b8e1cc11ce6ce0bb62909e2b5"
},
"downloads": -1,
"filename": "PixCrypt-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "8e7c6a249a1c778c921d95cff878ae22",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 3089,
"upload_time": "2024-05-01T06:24:21",
"upload_time_iso_8601": "2024-05-01T06:24:21.638527Z",
"url": "https://files.pythonhosted.org/packages/92/09/082ea8ffa6ffdc22fde5f2206b1d21a94515dff3fa9a3445ec1152735657/PixCrypt-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-01 06:24:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pixcrypt"
}