https://github.com/kylepiira/emage
Image Encryption Project
https://github.com/kylepiira/emage
encryption python-3 tools
Last synced: 7 months ago
JSON representation
Image Encryption Project
- Host: GitHub
- URL: https://github.com/kylepiira/emage
- Owner: KylePiira
- License: gpl-3.0
- Created: 2017-01-30T23:56:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T20:56:57.000Z (over 2 years ago)
- Last Synced: 2025-02-14T09:48:40.553Z (over 1 year ago)
- Topics: encryption, python-3, tools
- Language: Python
- Size: 22.9 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Emage
Image Encryption Project
# Installation
```python
pip install emage
```
# Usage
```python
from emage import encrypt, decrypt
```
then to encrypt some text
```python
encrypt('/path/to/image/file.png','strongpasswordhere','The message to be encryped')
```
to decrypt the text use
```python
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
```python
>>> 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".
