Encrypt codes and files into picture
Project description
codimage
codimage is a Python library that encrypts single / multiple text-transferable files, i.e. Python scripts, batch scripts and configuration files, into a single picture and protect your information with password.
Overview
File encryption
Given a single / multiple files, a PNG image (your own selfies will also work!), and a user defined password, codimage will generate a PNG image that is nearly identical to the original one with all contents from the files to be encrypted into the pixels.
File decryption
To decrypt and reverse back files from the code embedded image, user needs to use the original image and the correct password.
Installation
pip install codimage
Usage
Single file encryption
from codimage import codimage
codimage = codimage.Codimage()
codimage.encrypt(r"D:\dummy\dummy.png",
r"D:\codes\test.py",
r"D:\dummy\code.png",
"P@ssw0rd1")
Multiple files encryption
assume files to be encrypted are in D:\codes folder
codimage.encrypt(r"D:\dummy\dummy.png",
r"D:\codes",
r"D:\dummy\code.png",
"P@ssw0rd1")
Image decryption
assume files are to be exported to D:\export-codes
codimage.decrypt(r"D:\dummy\dummy.png",
r"D:\dummy\code.png",
r"D:\export-codes",
"P@ssw0rd1")
After decryption, a folder named 'codimage-datetime' will be created in export-codes with all files inside
License
The software is under MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codimage-0.0.2.tar.gz.
File metadata
- Download URL: codimage-0.0.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.17.1 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58a4a62f07dda05908534e69269de0cca7ff78f3ef12ee744f6c89cc97ad22b1
|
|
| MD5 |
ce383b46b15c32c43598eb318483a6ca
|
|
| BLAKE2b-256 |
24720d24458e875e281517780ebd7ab606c68959f3af50ff2d9931e5780704ec
|
File details
Details for the file codimage-0.0.2-py3-none-any.whl.
File metadata
- Download URL: codimage-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.17.1 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
892d9dd3e1bc92a433adf6f6356c5823d9bb51e4d3167f7c71fc8ebb697cfb90
|
|
| MD5 |
8a094c67268c37b97f6089b9902357af
|
|
| BLAKE2b-256 |
0483b44b0c5023a00753ccaac6ad4601970c7c98e144b1df96b8490a613a71df
|