- Clone the repository to your local machine.
- Install the necessary dependencies.
- Run the project.
git clone https://github.com/your-username/your-project.git
npm install
npm start
The substitution cipher replaces each letter in the message with a corresponding letter from a substitution alphabet. To use the substitution cipher, follow these steps:
const { substitution } = require('./substitution');
const message = "hello world"; const alphabet = "zyxwvutsrqponmlkjihgfedcba";
const encodedMessage = substitution(message, alphabet); console.log(encodedMessage); // Output: svool dliow
The Polybius square cipher encodes each letter in the message as a pair of numbers representing its row and column in a square grid. To use the Polybius square cipher, follow these steps:
const { polybius } = require('./polybius');
const message = "hello world";
const encodedMessage = polybius(message); console.log(encodedMessage); // Output: 3251131343 25432451
The Caesar shift cipher shifts each letter in the message by a fixed number of positions in the alphabet. To use the Caesar shift cipher, follow these steps:
const { caesar } = require('./caesar');
const message = "hello world"; const shift = 3;
const encodedMessage = caesar(message, shift); console.log(encodedMessage); // Output: khoor zruog
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch.
- Make your changes and commit them