Skip to content
RaveroCreatesPublic

About

PolyCrypt is a Spring Boot–based web application that uses polynomial interpolation to encrypt multiple hidden messages into a single ciphertext. Each secret key reveals only its corresponding message, demonstrating a unique multi-key cryptographic approach through an intuitive web interface.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

🔐 PolyCrypt

One Ciphertext. Multiple Secrets. One Polynomial.

An experimental multi-key encryption system powered by polynomial interpolation.

Java Spring Boot Thymeleaf Status


🚀 Overview

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.


✨ Features

  • 🔑 Multiple secret keys
  • 💬 Multiple meaningful messages
  • 📦 Single ciphertext output
  • 📐 Polynomial interpolation based encryption
  • 🔒 Key-specific decryption
  • 🌐 Interactive Spring Boot web application
  • ⚡ Modern animated interface

🧠 Encryption Workflow

Message + Secret Key
        │
        ▼
Generate Coordinate Points (x,y)
        │
        ▼
Lagrange Polynomial Interpolation
        │
        ▼
Polynomial Serialization
        │
        ▼
Ciphertext

🔓 Decryption Workflow

Ciphertext
      │
      ▼
Deserialize Polynomial
      │
      ▼
Evaluate Polynomial at Secret Key
      │
      ▼
Recover Hidden Message

Only the correct secret key evaluates to the intended message.


🛠 Tech Stack

Backend

  • Java 21
  • Spring Boot
  • Thymeleaf

Frontend

  • HTML5
  • CSS3
  • JavaScript

Mathematics

  • Lagrange Polynomial Interpolation
  • Polynomial Serialization
  • Hash-based Coordinate Generation

🚀 Running Locally

Clone the repository

git clone https://github.com/<your-username>/PolyCrypt.git

Move into the project

cd PolyCrypt

Run

./mvnw spring-boot:run

or

mvn spring-boot:run

Open

http://localhost:8080

📸 Screenshots

  • Home image

  • Encrypt image

  • Decrypt image

  • Learn image


📂 Project Structure

src
│
├── controller
├── Encrypt.java
├── Decrypt.java
├── Blocker.java
├── PolynomialGenerator.java
├── PolynomialSerializer.java
├── CryptoBridge.java
└── templates

⚠️ Current Limitations

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.


👨‍💻 Development

Backend

Designed and implemented entirely by Raghav Sharma,Chimdi.

Frontend

Designed with AI-assisted development and fully integrated into the backend by Raghav Sharma.


⚠️ Disclaimer

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.


📜 License

This project is released under the MIT License.


⭐ If you found this project interesting, consider giving it a star!

Made with ❤️ by Raghav Sharma for loved ones!

About

PolyCrypt is a Spring Boot–based web application that uses polynomial interpolation to encrypt multiple hidden messages into a single ciphertext. Each secret key reveals only its corresponding message, demonstrating a unique multi-key cryptographic approach through an intuitive web interface.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages