-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhybrid_cipher_demo2.py
50 lines (34 loc) · 1.12 KB
/
hybrid_cipher_demo2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- coding: utf-8 -*-
"""Hybrid_Cipher_Demo2.ipynb
Automatically generated by Colaboratory.
# PROJECT
# **CRPTOGRAPHY SYSTEM USING VIGENERE CIPHER AND POLYBIUS CIPHER**
### By- SHIVAM VATSHAYAN
"""
#Hello
#How's you ?
#This Hybrid Cipher is developed for Communication security for Army, Secure high level Communication, Message and Data Protection from attackers
"""## Contact me now ([email protected]) for Code of this Top class project"""
# Python code to implement Cryptographic System
# First Step is to Give Input to the System
# System 1 : Vigenere Cipher
# This function generates the
# key in a cyclic manner until
# it's length isn't equal to
# the length of original text
def generateKey(string, key):
key = list(key)
if len(string) == len(key):
return(key)
else:
for i in range(len(string) -
len(key)):
key.append(key[i % len(key)])
return("" . join(key))
"""Wait !
This is Only 10% code, for Full code mail me Now.
Full Project Code is bit longer !!
## Mail me Now ([email protected]) for full Code !
Let's Discuss about this project.
Feel Free to Contact me !!
"""