themrshubh / custom-playfair-cipher

This Python Program aims at providing a tweaked version of Playfair Cipher in cryptography.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Playfair Cipher

This Python Program aims at providing a tweaked version of Playfair Cipher in cryptography. This program was created as a part of the Cryptography and Security Services course in the Mumbai University. It takes the usual functioning algorithm of the Playfair Cipher and further enhances it by bringing in the concept of dynamic key generation. Further details about the algorithm are provided in the 'algorithm notes.pdf' file in the Algorithm directory.

Prerequisites

  • I have included a Jupyter Notebook file (.ippynb) in the 'algorithm' directory, so, you will need to install Jupyter Notebook in order to run it. Follow the link below to get Jupyter Notebook.

    https://jupyter.org/install

Program Output

The following output can be generated using the algorithm. The python code may be further enhanced by working on a structured output and input functionality.

Encryption

PT = "HEYO MAN"
encrypt(matrix,PT)

Encryption output

[['KC', 'DT', 'LB', 'SC']]

Decryption output

[['HE', 'YO', 'MA', 'NX']]

Built with

Acknowledgement

  • Thanks to the Prof. Monali Shetty, Fr.CRCE, Bandra for mentoring me through this project.

About

This Python Program aims at providing a tweaked version of Playfair Cipher in cryptography.


Languages

Language:Jupyter Notebook 100.0%