Skip to content

Conversation

@sawyer-shi
Copy link
Contributor

@sawyer-shi sawyer-shi commented Jan 16, 2026

File Encrypt & Decrypt

A powerful Dify plugin providing comprehensive local file encryption and decryption capabilities. All file operations are executed entirely on your local machine without any external services, API keys, or internet connections, ensuring maximum data security and privacy. Supports encryption and decryption of various file formats with customizable encryption suffixes.

Supported file types include: .pdf, .txt, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .rtf, .odt, .ods, .odp, .md, .csv, .html, .htm, .css, .js, .json, .xml, .py, .java, .c, .cpp, .h, .hpp, .cs, .php, .rb, .go, .rs, .swift, .kt, .ts, .tsx, .jsx, .vue, .sql, .jpg, .jpeg, .png, .gif, .bmp, .svg, .tiff, .ico, .webp, .mp3, .wav, .ogg, .mp4, .avi, .mov, .wmv, .flv, .mkv, .webm, .zip, .7z, .tar, .gz, .bz2, .xz, .rar, .iso, .dmg, .exe, .msi, .apk, .ipa, .deb, .rpm, .sh, .bat, .ps1, .dll, .so, .dylib, .lib, .a, .o, .class, .jar, .war, .ear, .swf, .fla, .as, .mxp, .air, .zxp, .pem, .crt, .cer, .der, .p12, .pfx, .key, .pub, .asc, .sig, .gpg, .p7s, .p7b, .p7r, .p7c, .spc, .sst, .stl, .pko, .cat, .crl, .rl, .wrl, .vrm, .vrml, .igs, .iges, .msh, .mesh, .silo, .obj, .mtl, .stl, .dxf, .dwg, .dwf, .gbr, .gtl, .gbl, .gbo, .gbs, .gml, .gko, .gm1, .gm2, .gm3, .cmp, .sol, .stc, .sts, .plc, .top, .drd, .art, .rep, and many more....

Version Information

  • Current Version: v0.0.1
  • Release Date: 2026-01-14
  • Compatibility: Dify Plugin Framework
  • Python Version: 3.12

Version History

  • v0.0.1 (2026-01-14): Initial version with file encryption and decryption features

Quick Start

  1. Download the file_encrypt_decrypt plugin from Dify marketplace
  2. Install the plugin in your Dify environment
  3. Start encrypting and decrypting your files immediately

Core Features

EnglishChinese

  • 100% Local Processing: All file encryption and decryption operations are executed entirely on your local machine
  • No External Services: No need to connect to any external services or third-party APIs
  • No API Keys Required: Completely free to use without any API key configuration
  • Maximum Data Security: Your files never leave your local environment, ensuring complete privacy and security
  • Zero Network Dependency: Works offline without internet connection
  • Customizable Encryption Suffixes: Choose from locked, enc, or secret suffixes for encrypted files
  • Flexible Key Management: Support for both manual key input and auto-generated keys

Technical Advantages

  • Local Processing: All file encryption and decryption is executed locally without external dependencies
  • High Security: Uses strong encryption algorithms to protect your files
  • Flexible Options: Various configuration options for different use cases
  • Error Handling: Robust error handling with informative messages
  • Secure Processing: Files are processed securely without data retention
  • Customizable Suffixes: Choose encryption suffixes to organize encrypted files

Requirements

  • Python 3.12
  • Dify platform access
  • Required Python packages (install via requirements.txt)

Usage

If you want to add other file types in Dify, please add all the file types you need:
file-type

The plugin provides the following tools:

Tool Comparison Table

Series Tool Name Tool ID Type Supported Files Key Source Suffix Options
Simple Encrypt File Simple (Manual) encrypt_file_simple_manual Encrypt PDF, ZIP, 7Z Only Manual Standard / Fixed
Encrypt File Simple (Auto) encrypt_file_simple_auto Encrypt PDF, ZIP, 7Z Only Auto Standard / Fixed
Decrypt File Simple decrypt_file_simple Decrypt PDF, ZIP, 7Z Only Input Key N/A
Normal Encrypt File Normal (Manual) encrypt_file_manual Encrypt All File Types Manual .locked (Default)
.enc
.secret
Encrypt File Normal (Auto) encrypt_file_auto Encrypt All File Types Auto .locked (Default)
.enc
.secret
Decrypt File Normal decrypt_file Decrypt All Encrypted Files Input Key N/A
Pro Encrypt File Pro (Manual) encrypt_file_pro_manual Encrypt All File Types Manual .locked (Default)
.enc
.secret
Encrypt File Pro (Auto) encrypt_file_pro_auto Encrypt All File Types Auto .locked (Default)
.enc
.secret
Decrypt File Pro decrypt_file_pro Decrypt All Encrypted Files Input Key N/A

Notes

  • All file encryption and decryption is executed locally without uploading files to external services
  • For auto-generated keys, make sure to save the key as it will be needed for decryption
  • The same key must be used for encryption and decryption
  • Simple encryption only supports PDF, ZIP, and 7Z files
  • Pro and Normal encryption support any file type
  • Encrypted files will have the selected suffix (locked, enc, or secret) appended
  • Large files may require longer processing time depending on their size

Core Functions

1. Simple Encryption

Simple Encryption with Manual Key

  • Encrypt PDF, ZIP, 7Z Files: Encrypt PDF, ZIP, or 7Z files with a manually provided key
  • Password Protection: Files are encrypted with password protection
  • Key Required: You must provide a key to encrypt the file
  • Supported Formats: PDF, ZIP, 7Z

Simple Encryption with Auto-generated Key

  • Encrypt PDF, ZIP, 7Z Files: Encrypt PDF, ZIP, or 7Z files with an automatically generated key
  • Auto Key Generation: System automatically generates a secure key
  • Key Display: The generated key is displayed after encryption
  • Save Your Key: Important to save the generated key to open the file later
  • Supported Formats: PDF, ZIP, 7Z

2. Pro Encryption

Pro Encryption with Manual Key

  • Encrypt Any File Type: Encrypt any file format with a manually provided key
  • Custom Suffix Support: Choose from locked, enc, or secret suffixes
  • Password Protection: Files are encrypted with password protection
  • Key Required: You must provide a key to encrypt the file
  • Flexible File Support: Works with any file type

Pro Encryption with Auto-generated Key

  • Encrypt Any File Type: Encrypt any file format with an automatically generated key
  • Custom Suffix Support: Choose from locked, enc, or secret suffixes
  • Auto Key Generation: System automatically generates a secure key
  • Key Display: The generated key is displayed after encryption
  • Save Your Key: Important to save the generated key to open the file later
  • Flexible File Support: Works with any file type

3. Normal Encryption

Normal Encryption with Manual Key

  • Encrypt Any File Type: Encrypt any file format with a manually provided key
  • Custom Suffix Support: Choose from locked, enc, or secret suffixes
  • Password Protection: Files are encrypted with password protection
  • Key Required: You must provide a key to encrypt the file
  • Flexible File Support: Works with any file type

Normal Encryption with Auto-generated Key

  • Encrypt Any File Type: Encrypt any file format with an automatically generated key
  • Custom Suffix Support: Choose from locked, enc, or secret suffixes
  • Auto Key Generation: System automatically generates a secure key
  • Key Display: The generated key is displayed after encryption
  • Save Your Key: Important to save the generated key to open the file later
  • Flexible File Support: Works with any file type

4. Decryption

Simple Decryption

  • Decrypt PDF, ZIP, 7Z Files: Decrypt PDF, ZIP, or 7Z files that were encrypted with the simple encryption method
  • Key Required: You must provide the key used during encryption
  • Automatic File Type Detection: Automatically detects file type and outputs correct format
  • Supported Formats: PDF, ZIP, 7Z

Pro Decryption

  • Decrypt Any Encrypted File: Decrypt files with locked, enc, or secret suffixes into their original formats
  • Key Required: You must provide the key used during encryption
  • Automatic File Type Detection: Automatically detects original file type and outputs correct format
  • Flexible File Support: Works with any encrypted file

Normal Decryption

  • Decrypt Any Encrypted File: Decrypt files with suffixes like .pdf.locked, .mp4.enc, .xlsx.secret into their original formats
  • Key Required: You must provide the key used during encryption
  • Automatic File Type Detection: Automatically detects original file type and outputs correct format
  • Flexible File Support: Works with any encrypted file

Developer Information

  • Author: https://github.com/sawyer-shi
  • Email: [email protected]
  • License: Apache License 2.0
  • Source Code: https://github.com/sawyer-shi/dify-plugins-file_encrypt_decrypt
  • Support: Available through Dify platform and GitHub Issues

License Statement

This project is licensed under the Apache License 2.0. The full license text is available in the LICENSE file.


Ready to encrypt and decrypt your files?

Plugin Submission Form

1. Metadata

  • Plugin Author:
  • Plugin Name:
  • Repository URL:

2. Submission Type

  • New plugin submission
  • Version update for existing plugin

3. Description

4. Checklist

  • I have read and followed the Publish to Dify Marketplace guidelines
  • I have read and comply with the Plugin Developer Agreement
  • I confirm my plugin works properly on both Dify Community Edition and Cloud Version
  • I confirm my plugin has been thoroughly tested for completeness and functionality
  • My plugin brings new value to Dify

5. Documentation Checklist

Please confirm that your plugin README includes all necessary information:

  • Step-by-step setup instructions
  • Detailed usage instructions
  • All required APIs and credentials are clearly listed
  • Connection requirements and configuration details
  • Link to the repository for the plugin source code

6. Privacy Protection Information

Based on Dify Plugin Privacy Protection Guidelines:

Data Collection

Privacy Policy

  • I confirm that I have prepared and included a privacy policy in my plugin package based on the Plugin Privacy Protection Guidelines

@sawyer-shi sawyer-shi closed this Jan 16, 2026
@sawyer-shi sawyer-shi reopened this Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant