EncGPT: A Multi-Agent Workflow for Dynamic Encryption Algorithms
Donghe Li, Zuchen Li, Ye Yang, Li Sun, Dou An, Qingyu Yang
TL;DR
EncGPT introduces a dynamic, multi-agent framework that uses LLM-driven rule, encryption, and decryption agents to generate and apply encryption rules within a decentralized dialogue workflow, aiming to balance security with computational cost. By leveraging classical algorithms for rule generation and a three-round prompting strategy, the system tests homomorphic properties and evaluates GPT-4o's performance in rule creation and encryption/decryption tasks. The results demonstrate feasibility with substitution ciphers and highlight challenges such as model bias, hallucinations, and limited arithmetic capabilities, suggesting further optimization and tool integration. This work advances LLM-MA research by showing how dynamic encryption rules can be produced on-the-fly, potentially enhancing security in adaptive communication scenarios while outlining clear directions for future improvements and broader cryptographic coverage.
Abstract
Communication encryption is crucial in computer technology, but existing algorithms struggle with balancing cost and security. We propose EncGPT, a multi-agent framework using large language models (LLM). It includes rule, encryption, and decryption agents that generate encryption rules and apply them dynamically. This approach addresses gaps in LLM-based multi-agent systems for communication security. We tested GPT-4o's rule generation and implemented a substitution encryption workflow with homomorphism preservation, achieving an average execution time of 15.99 seconds.
