Skip to main content

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


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)

Uploaded Source

Built Distribution

PixCrypt-1.1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page