Skip to content

This is a simple scenario based application for string matching and cryptography in the case of a publisher, subscriber model. This demonstrates the communication between a publisher and a subscriber model using two different modes of encryption and decryption(Caesar Cipher, Bit-Flipping).

License

Notifications You must be signed in to change notification settings

nalinrajendran/cryptography-automata-theory

Repository files navigation

String Matching and Cryptography (Caesar Cipher, Bit-Flipping)

This is a simple scenario based application for string matching and cryptography in the case of a publisher, subscriber model. This demonstrates the communication between a publisher and a subscriber model using two different modes of encryption and decryption(Caesar Cipher, Bit-Flipping). This application is built in the perspective of a turing machine.

PRE-REQUISITES:

  • Node

How to Run the file:

  • Navigate to the project directory and run the below command to install the dependencies in the package.json file.

npm -i

  • Once after the dependencies are installed, we could start the development server either by using node or nodemon.

nodemon app.js

or

node app.js

  • Now the local server should be running in the port 3000. Now we should navigate to the browser and type the localhost url.

->This should bring up a signin page. Screenshot 2023-01-08 at 10 35 03 AM

  • We can use any of the usernames and passwords mentioned below. Here, we use the string matching turing machine for login. Here we are intended to do only string matching, so the passwords here are kept straight and in an unencrypted manner.

List of usernames and passwords. FORMAT: {"username" : "password"}.

{"nalin":"adminnalin"}, {"karthikeyan":"adminkeyan"},{"karthik":"adminkarthik"},{"eswar":"admineswar"},{"pragadishwaran":"adminpd"}

  • Once after login, it should take us to the mode of encryption selection page, where the user can either use one method.

Screenshot 2023-01-08 at 10 35 22 AM

NOTE: The publisher and the subscriber should be opened parallely, so that once the message is passed from the publisher, it should be reflected in the subscriber side (after refreshing the page).

Screenshot 2023-01-08 at 10 35 46 AM

Screenshot 2023-01-08 at 10 35 55 AM

Screenshot 2023-01-08 at 10 36 03 AM

About

This is a simple scenario based application for string matching and cryptography in the case of a publisher, subscriber model. This demonstrates the communication between a publisher and a subscriber model using two different modes of encryption and decryption(Caesar Cipher, Bit-Flipping).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •