Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 897 Bytes

File metadata and controls

38 lines (30 loc) · 897 Bytes

Emage

Image Encryption Project

Installation

pip install emage

Usage

from emage import encrypt, decrypt

then to encrypt some text

encrypt('/path/to/image/file.png','strongpasswordhere','The message to be encryped')

to decrypt the text use

message = decrypt('/path/to/image/file.png','strongpasswordhere')

the above will return a bytes object of the string that has been embeded in the image.

Examples

>>> from emage import encrypt, decrypt
>>> encrypt('penguins.png','password','This is a photograph of a penguin')
>>> message = decrypt('penguins.png','password')
>>> message
b'This is a photograph of a penguin'
>>> 

The image penguins.png now has the following text embeded in it: "This is a photograph of a penguin" protected by the password: "password". Penguin