Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

INDEX

Sr. Title Page Date Sign


No. No
1 Implement Caesar cipher encryption- 1
decryption.
2 Implement Monoalphabetic cipher 2
encryption-decryption.
3 Implement Playfair cipher encryption- 4
decryption.
4 Implement Polyalphabetic cipher 9
encryption-decryption.
5 Implement Hill cipher encryption- 11
decryption.
6 To implement Simple DES or AES. 15
7 Implement Diffi-Hellmen Key exchange 19
Method.
8 Implement RSA encryption-decryption 20
algorithm.
9 Write a program to generate SHA-1 hash. 24
10 Implement a digital signature algorithm 27
11 Perform various encryption-decryption 31
techniques with cryptool.
12 Study and use the Wireshark for the various 36
network protocols.
13 Assignment
Practical:1
Aim: Implement Caesar cipher encryption-decryption.
Program:
def fun(text,shift):
result = ""
for i in range(len(text)):
char=text[i]

if char.isupper():
result += chr((ord(char) + shift - 65) % 26 + 65)

else:
result += chr((ord(char) + shift - 97) % 26 + 97)
return result

text=input("Input the Text:")


shift=int(input("Input the Shift:"))

ans=fun(text,shift)
print("Answer is:",ans)

Output:
Practical:2

Aim: Implement Monoalphabetic cipher encryption-decryption.


Program:
Output:
Practical:3
Aim: Implement Playfair cipher encryption-decryption.
Program:

You might also like