A custom Python library for file encryption and decryption using a simple, self-made encryption algorithm. This library supports encryption of any file type and is easy to integrate into other projects.
Project description
Custom File Encryptor
A custom Python library for file encryption and decryption using a simple, self-made encryption algorithm. This library supports encryption of any file type and is easy to integrate into other projects.
Features
- Encrypt and decrypt any file type (e.g.,
.txt
,.jpg
,.pdf
,.mp4
). - Custom encryption algorithm with simple operations (XOR and byte shifts).
- Easy-to-use API for integrating into other Python projects.
Installation
To install the library, simply use pip:
pip install custom-file-encryptor
Usage
Here is a basic example of how to use the CustomFileEncryptor class to encrypt and decrypt files:
from custom_file_encryptor.encryptor import CustomFileEncryptor
# Initialize the encryptor with a password
encryptor = CustomFileEncryptor(password="my_secure_password")
# Encrypt a file
encryptor.encrypt_file("example.jpg", "example_encrypted.enc")
# Decrypt the file back to its original form
encryptor.decrypt_file("example_encrypted.enc", "example_decrypted.jpg")
Contact
For any questions or inquiries, please contact the author:
- Name: Liu Yu chen
- Email: liuyuchen032901@outlook.com
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
File details
Details for the file custom-file-encryptor-1.0.2.tar.gz
.
File metadata
- Download URL: custom-file-encryptor-1.0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd36ce9a8574f9ebb9b3ca918730e80e860f3856e8f9da993067898c553c12ca |
|
MD5 | 204a4e26ad2e219abac90ced21484b27 |
|
BLAKE2b-256 | ab05fef5d575befd579c512fbb43d3760ba08c486389631a7bffec34d1752d12 |
File details
Details for the file custom_file_encryptor-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: custom_file_encryptor-1.0.2-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f65dd689eadb79574856d4e41ffb1851b7fd7c8bf064bf77609b9d76341b6bc7 |
|
MD5 | 6baa78a680f24ee08f21f9a4e4e07eeb |
|
BLAKE2b-256 | 83149263a5ae2a968218926d63a41c485a50cdb4647c9e44e269de59ae1d7050 |