Skip to content
Encodes an image to a string for cryptography uses.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
strimg.py

README.md

str(img)

Encodes an image to a string for cryptography uses.

Dependencies

  • Python >= 3.5
  • PIL pip install Pillow

Usage

Either call the program with an image to be encoded (-e) or an image to be decoded (-d) e.g: python3 strimg.py -e myImage.png It works by converting each R/G/B value (0-255) to the relevant ASCII character. E.g: this dark green color: RGB(72,105,33) becomes: Hi!

You can’t perform that action at this time.