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 hashes)