Skip to main content

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

Release files for codimage 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codimage 0.0.2
File Size Uploaded
codimage-0.0.2.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codimage 0.0.2
File Interpreter ABI Platform
codimage-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / codimage-0.0.2.tar.gz

Download URL codimage-0.0.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
58a4a62f07dda05908534e69269de0cca7ff78f3ef12ee744f6c89cc97ad22b1
BLAKE2b-256 checksum
How to use checksums
24720d24458e875e281517780ebd7ab606c68959f3af50ff2d9931e5780704ec
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / codimage-0.0.2-py3-none-any.whl

Download URL codimage-0.0.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
892d9dd3e1bc92a433adf6f6356c5823d9bb51e4d3167f7c71fc8ebb697cfb90
BLAKE2b-256 checksum
How to use checksums
0483b44b0c5023a00753ccaac6ad4601970c7c98e144b1df96b8490a613a71df
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page