Skip to content

使用Python AES算法实现的多级文件目录加解密工具(Multilevel directory files encryption and decryption tool)

License

Notifications You must be signed in to change notification settings

eW1z4rd/AES-File-Encryptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FileEncryptor

利用 Python 实现的一个轻量级文件加解密工具,使用 AES-CBC 模式对一个文件或者当前文件目录进行加解密操作。支持在 Windows/Linux 下同时使用。

Quick start

Installation

  • 依赖加密算法库:pycryptodome

  • 安装:pip install pycryptodome

Usage

CLI

FileEncryptor.py -p <password> [-e/-d/-E/-D] <filename>

Options

  -h, --help                 show Usage.
  -p, --pwd <password>       enter your password.
  -e, --encrypt <filename>   encrypt the file.
  -d, --decrypt <filename>   decrypt the file.
  -E                         encrypt all files in the current directory.
  -D                         decrypt all files in the current directory.

Example

  • 加密当前目录下所有文件(在当前目录下生成 lockFile.enc 文件)

python FileEncryptor.py -p asdfqwer#@! -E

  • 解密 lockFile.enc 文件,并还原出完整的文件目录

python FileEncryptor.py -p asdfqwer#@! -D

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

使用Python AES算法实现的多级文件目录加解密工具(Multilevel directory files encryption and decryption tool)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages