# dcrypt **Repository Path**: lucasliu71/dcrypt ## Basic Information - **Project Name**: dcrypt - **Description**: 用 Python 编写的目录加密、解密工具 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-24 - **Last Updated**: 2025-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 概述 `dcrypt.py` 是一个用于解密操作的 Python 脚本. 它可以帮助用户对特定格式的加密文件或字符串进行解密处理 ## 功能特性 - 支持多种加密算法的解密 - 提供命令行接口, 方便批量操作 - 可自定义解密密钥和参数 ## 安装依赖 在运行 `dcrypt.py` 之前, 需要安装必要的 Python 库: `pip install -r requirements.txt` ## 运行 dcrypt.py 输出帮助信息 ```bash $ python dcrypt.py [COMMANDS] --help usage: dcrypt.py [-h] COMMANDS ... ██████╗ ██████╗██████╗ ██╗ ██╗██████╗ ████████╗ ██╔══██╗██╔════╝██╔══██╗╚██╗ ██╔╝██╔══██╗╚══██╔══╝ ██║ ██║██║ ██████╔╝ ╚████╔╝ ██████╔╝ ██║ ██║ ██║██║ ██╔══██╗ ╚██╔╝ ██╔═══╝ ██║ ██████╔╝╚██████╗██║ ██║ ██║ ██║ ██║ ╚═════╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ positional arguments: COMMANDS encrypt Encrypt a folder decrypt Decrypt a folder genkey Generate encryption key options: -h, --help show this help message and exit ``` 加密解密目录文件, 默认 `dcrypt.key` ```bash $ python dcrypt.py genkey -k '秘钥路径' $ python dcrypt.py encrypt '你要加密的目录路径' -k '秘钥路径' $ python dcrypt.py decrypt '你要解密的目录路径' -k '秘钥路径' ```