Skip to content

KylePiira/Emage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Image Encryption Project

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages