Skip to content

MatrixCryptAI is an interactive web application that demonstrates the fascinating world of matrix-based cryptography. Using the principles of the Hill Cipher, this project allows users to encrypt and decrypt messages using 2x2 matrix keys.

Notifications You must be signed in to change notification settings

kuokiii/Matrix-Crypt-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 

Repository files navigation

MatrixCryptAI is an interactive web application that demonstrates the fascinating world of matrix-based cryptography. Using the principles of the Hill Cipher, this project allows users to encrypt and decrypt messages using 2x2 matrix keys.

๐ŸŒŸ Features

  • Encryption & Decryption: Secure your messages or decode encrypted text using matrix operations.
  • Interactive UI: User-friendly interface with real-time feedback.
  • Custom Key Input: Enter your own 2x2 matrix key or generate a random one.
  • Message History: Keep track of your recent encryption and decryption operations.
  • Copy to Clipboard: Easily copy encrypted or decrypted messages.
  • Download History: Save your encryption/decryption history as a text file.

๐Ÿ› ๏ธ Technologies Used

  • React
  • TypeScript
  • Tailwind CSS
  • Framer Motion

๐Ÿ“ฆ Installation

  1. Clone the repository:

git clone https://github.com/your-username/matrix-crypt-ai.git

  1. Navigate to the project directory:

cd matrix-crypt-ai

  1. Install dependencies:

npm install

  1. Start the development server:

npm start

  1. Open your browser and visit http://localhost:3000

๐Ÿงฎ How It Works

MatrixCryptAI uses the Hill Cipher algorithm, a polygraphic substitution cipher based on linear algebra. Here's a brief overview of the process:

  1. Encryption:
  • Convert the plaintext to numbers (A=0, B=1, ..., Z=25)
  • Group the numbers into pairs
  • Multiply each pair with the 2x2 key matrix
  • Convert the resulting numbers back to letters
  1. Decryption:
  • Convert the ciphertext to numbers
  • Calculate the inverse of the key matrix
  • Multiply each pair of numbers with the inverse key matrix
  • Convert the resulting numbers back to letters

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

๐Ÿ“ License

This project is [GNU] licensed.

๐Ÿ‘จโ€๐Ÿ’ป Author

Nirupam Thapa

๐Ÿ™ Acknowledgments

  • Inspired by the Hill Cipher algorithm
  • Thanks to all contributors and supporters of this project!

โญ๏ธ If you find this project interesting or useful, please consider giving it a star!

About

MatrixCryptAI is an interactive web application that demonstrates the fascinating world of matrix-based cryptography. Using the principles of the Hill Cipher, this project allows users to encrypt and decrypt messages using 2x2 matrix keys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published