Skip to content

NikitaBhamu/Cryptography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Cryptography

This folder contains all the assignment of the course COL759 : "Cryptography & Computer Security"

Assignment 1 :

Encyption, Decryption & Analysis of Hill Cipher

  1. encrypt.py :- This file contains the method to encrypt the plaintext by the key using the Hill Cipher algorithm.
  2. decrypt.py :- This file contains the method to decrypt the ciphertext by the key using the Hill Cipher algorithm.
  3. analysis.py :- This file contains the method to use the Index Of Coincidence of the english language to get the complete plaintext from the known plaintext attack, where the plaintext corresponding to the ciphertext of size n^2 (where n is the size of the key) is known.

Assignment 2 :

Authenticate encryption using Symmetric & Assymetric cryptosystem together

  1. First we generate strong primes using "Gordon Method".
  2. Then we generate the public and private keys for both the users using that.
  3. Then the digital signature of the all the keys is generated and finally the keys concatenated with their digital signature with '@' in between is stored in the keys folder.
  4. Then first we verify the authenticity of the sender A and after that we will start encrypting the plaintext by using Vignere encryption technique and RSA together as given in the problem statement.
  5. Then we verify the authenticity of the receiver B and after that we will start decrypting the ciphertext by using Vignere encryption technique and RSA together as given in the problem statement.
  6. We also used the Chinese Remainder Theoram (CRT) to make the computations of RSA less time costly.

About

This folder contains all the assignment of the course COL759 : "Cryptography & Computer Security"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages