Library for encrypting text into an image
Project description
PixCrypt
Library for encrypting text into an image
Usage
Encrypting text to image
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:
img = pix.getimage(max_width=12)
Decrypting image into text
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:
pix = PixImage(text='some info')
pix2 = PixImage(pix.getimage())
text = pix2.getstr()
print(text) # some info
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PixCrypt-1.1.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PixCrypt-1.1.0.tar.gz.
File metadata
- Download URL: PixCrypt-1.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1be07fd371a2c9a4ac7aedc94d0293fca4cead2b8e1cc11ce6ce0bb62909e2b5
|
|
| MD5 |
8e7c6a249a1c778c921d95cff878ae22
|
|
| BLAKE2b-256 |
9209082ea8ffa6ffdc22fde5f2206b1d21a94515dff3fa9a3445ec1152735657
|
File details
Details for the file PixCrypt-1.1.0-py3-none-any.whl.
File metadata
- Download URL: PixCrypt-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c61ce762f17e1619537ba5cca877b394121f382914540dd2195903b8ad5fc4a
|
|
| MD5 |
5f2cf936794c7d437bd6507084889161
|
|
| BLAKE2b-256 |
564f4152113e6a7a537d74bcf394e8cb4008fbc8789c7fd6a71eedfed7871ddb
|