Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please just complete the Railfence part in python, I did all others just stack in this part . thank you please complete this function for

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

please just complete the Railfence part in python, I did all others just stack in this part . thank you

please complete this function for me? just this function!

import sys

from CipherInterface import CipherInterface

class Railfence(CipherInterface):

ShiftValue = 0;

def __init__(self):

super().__init__("Railfence");

def setKey(self, key):

status = super().setKey(key);

return status;

def encrypt(self, plaintext):

encryptedData = "";

return encryptedData;

def decrypt(self, ciphertext):

decryptedData = "";

return decryptedData;

#end CaesarCipher

I need it as soon as possible please

assignment1.pdf In this assignment you shall implement the following classical ciphers: Playfair e Railfence . Cacsar (by popular demand) Your program shall be called cipher and shall be executed as: /cipher setKey (the key) else if the cipher is Vigen re) Assuming Vigenere is mplemented using class Vigenere/ cipher- new Vigenere () cipher >set Key (the key) // Handle the other ciphers The sample folder contains files Playfair.h and Playfair.epp which declare and deline the skeleton for implementing the Playfair cipher, respectively. A minimal driver program file (in C++) has been provided for you: cipher. cpp. The driver progran can be compiled as described in the next part. You must modify this fike to implement the aforementioned functionality COMPILING YOUR PROGRAM Again, Your program must be implemented using C+t, Java, or Python and ble on the Titan server. You ust also inchulo a Makatile which compiksal

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Language in Context?

Answered: 1 week ago