Improved Code and removed Warnings (#483)

This commit is contained in:
Parth Shandilya
2018-10-19 14:00:31 +05:30
committed by GitHub
parent 07451a6ca4
commit 5d1f72604d
36 changed files with 67 additions and 67 deletions

View File

@ -2,9 +2,9 @@ from __future__ import print_function
import math
def main():
message = input('Enter message: ')
key = int(input('Enter key [2-%s]: ' % (len(message) - 1)))
mode = input('Encryption/Decryption [e/d]: ')
message = raw_input('Enter message: ')
key = int(raw_input('Enter key [2-%s]: ' % (len(message) - 1)))
mode = raw_input('Encryption/Decryption [e/d]: ')
if mode.lower().startswith('e'):
text = encryptMessage(key, message)