An experimental multi-key encryption system powered by polynomial interpolation.
PolyCrypt is an experimental cryptographic system that allows multiple meaningful messages to be embedded into a single ciphertext.
Each message is associated with a unique secret key. During decryption, only the matching key reveals its corresponding message, while every other embedded secret remains inaccessible.
Instead of traditional one-message-one-ciphertext encryption, PolyCrypt explores a mathematical approach based on Lagrange Polynomial Interpolation.
- 🔑 Multiple secret keys
- 💬 Multiple meaningful messages
- 📦 Single ciphertext output
- 📐 Polynomial interpolation based encryption
- 🔒 Key-specific decryption
- 🌐 Interactive Spring Boot web application
- ⚡ Modern animated interface
Message + Secret Key
│
▼
Generate Coordinate Points (x,y)
│
▼
Lagrange Polynomial Interpolation
│
▼
Polynomial Serialization
│
▼
Ciphertext
Ciphertext
│
▼
Deserialize Polynomial
│
▼
Evaluate Polynomial at Secret Key
│
▼
Recover Hidden Message
Only the correct secret key evaluates to the intended message.
- Java 21
- Spring Boot
- Thymeleaf
- HTML5
- CSS3
- JavaScript
- Lagrange Polynomial Interpolation
- Polynomial Serialization
- Hash-based Coordinate Generation
Clone the repository
git clone https://github.com/<your-username>/PolyCrypt.gitMove into the project
cd PolyCryptRun
./mvnw spring-boot:runor
mvn spring-boot:runOpen
http://localhost:8080
src
│
├── controller
├── Encrypt.java
├── Decrypt.java
├── Blocker.java
├── PolynomialGenerator.java
├── PolynomialSerializer.java
├── CryptoBridge.java
└── templates
The current implementation uses a fixed interpolation block size of 20 points (MAX = 20).
Because every polynomial is generated from a fixed 20-point interpolation rectangle, a single encryption block cannot represent more than 20 character positions.
Supporting larger messages requires generating additional interpolation blocks and corresponding polynomials, which is planned for future versions.
Designed and implemented entirely by Raghav Sharma,Chimdi.
Designed with AI-assisted development and fully integrated into the backend by Raghav Sharma.
PolyCrypt is an experimental cryptographic project developed for research, learning, and demonstration purposes.
It has not undergone professional cryptographic review and should not be used for protecting sensitive or production data.
This project is released under the MIT License.



