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. PixImage class contains a built-in method for saving:

pix.save('hello_world') # without extension

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

print(pix2.getstr()) # 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.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PixCrypt-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file PixCrypt-1.0.0.tar.gz.

File metadata

  • Download URL: PixCrypt-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for PixCrypt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1d34c5d0e1cf20236af7c8c95bd907a6e48066eac6e340a4ebda94e99883f072
MD5 c1aa23cec43908a3c2c4713ad7046f1a
BLAKE2b-256 138c6519ccbb4176afcf9469f19b1a7aa28836049b6d6996215db55b1efe9deb

See more details on using hashes here.

File details

Details for the file PixCrypt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: PixCrypt-1.0.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

Hashes for PixCrypt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c3324e1824ba988e37d67a599df6187e712721c2ec4061c0212c05f7d310527
MD5 0ebbf3929b9e6a0e8ae58381b99694d4
BLAKE2b-256 c9ea7cf1373644a71845b275a50c6b85fd7f918794d9429f9c6225c584047bec

See more details on using hashes here.

Supported by

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