https://github.com/mariam-badr-mb/route-cipher
Route Cipher is a transposition cipher that arranges the message into a grid and then reads it in a spiral order, starting from the outer boundary towards the center. The encryption and decryption are based on a secret key (number of columns), which determines the size of the grid.
https://github.com/mariam-badr-mb/route-cipher
cplusplus-20 cpp
Last synced: 5 months ago
JSON representation
Route Cipher is a transposition cipher that arranges the message into a grid and then reads it in a spiral order, starting from the outer boundary towards the center. The encryption and decryption are based on a secret key (number of columns), which determines the size of the grid.
- Host: GitHub
- URL: https://github.com/mariam-badr-mb/route-cipher
- Owner: Mariam-Badr-MB
- License: other
- Created: 2024-11-22T00:49:27.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-22T00:55:05.000Z (7 months ago)
- Last Synced: 2024-12-02T10:15:03.175Z (7 months ago)
- Topics: cplusplus-20, cpp
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Route Cipher Program
This program implements the **Route Cipher**, an encryption and decryption method where a message is written into a grid and then read in a spiral order. The program allows the user to choose between encryption and decryption, input their message, and provide a secret key (column size).
## Features
- **Route Cipher**: Encrypts and decrypts messages by writing them in a grid (matrix) and reading the grid in a spiral order.
- **Secret Key**: The secret key is the number of columns used to create the grid. The program will prompt for the secret key during encryption and decryption.## Usage
1. Clone this repository to your local machine:
```bash
git clone https://github.com/yourusername/route-cipher.git
cd route-cipher