A 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
File Encryptor 2024 v1.0.3
1.1 Library encoding 库编码:
- UTF-8
1.2 introduce 介绍
A 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.
一个 Python 库,用于使用简单的自制加密算法进行文件加密和解密。该库支持任何文件类型的加密,并且易于集成到其他项目中。
About updates 关于更新
2.1 Update type 更新类型
- .1.1 本次更新类型:
- Urgent update 紧急更新
- patch 补丁
- Minor version updates 小版本更新
- Major version updates 大版本更新
- Language packs 语言包
2.2 Updated content 更新内容
-
README.md file added Chinese user manual
-
Shorten the function name to make it easier to call the function
-
README.md文件增加中文使用手册
-
缩短函数名称,以方便调用函数
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.
- 加密和解密任何文件类型(e.g.,
.txt
,.jpg
,.pdf
,.mp4
)
Installation 安装
To install the library, simply use pip:
要安装库,只需使用 pip:
pip install file-encryptor
Usage 用法
Here is a basic example of how to use the CustomFileEncryptor class to encrypt and decrypt files:
下面是如何使用 CustomFileEncryptor 类来加密和解密文件的基本示例:
English
from file_encryptor.encryptor import FileEncryptor
# Initialize the encryptor with a password
encryptor = FileEncryptor(password="example_password")
# Encrypt a file
encryptor.encrypt_file("example_file", "example_file_name.enc")
# Decrypt the file back to its original form
encryptor.decrypt_file("example_file_name.enc", "example_file")
简体中文
from file_encryptor.encryptor import FileEncryptor
# 使用密码初始化加密器
encryptor = FileEncryptor(password="示例密码")
# 加密文件
encryptor.encrypt_file("示例文件", "示例文件名.enc")
# 将文件解密回其原始形式
encryptor.decrypt_file("示例文件名.enc", "示例文件")
Contact 联系
For any questions or inquiries, please contact the author:
- Name: LiuYuchen
- Email: liuyuchen032901@outlook.com
如有任何问题或疑问,请联系作者:
- 姓名: 刘宇晨
- 邮箱: 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
File details
Details for the file file_encryptor_2024-1.0.3.tar.gz
.
File metadata
- Download URL: file_encryptor_2024-1.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e5a7756950ca6039c782e75e1f40a2c5336f1985787a516c48c96d512ab9e1 |
|
MD5 | 46d26d2eea5a09b015160839e667ea16 |
|
BLAKE2b-256 | a74be535051c9436542180a9ee053c3a8701bc0b3cd490ac6a2a305435074cf5 |