Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use python 3.6 and make sure code is working please Write a program which encrypts a word using a Caesar cipher. Name your program 'YourUsernameA102.py',

use python 3.6 and make sure code is working please

image text in transcribed

Write a program which encrypts a word using a Caesar cipher. Name your program 'YourUsernameA102.py', e.g. dazh001A102.py A Caesar cipher is a simple and well known encryption technique, where each letter in the original message is replaced by a letter a certain number of positions down the alphabet. You will be using a Caesar cipher with a shift of 5. In other words the letter "a" would be replaced by the letter "f" while the letter "x" would be replaced by the letter "c" Your program should use the following two variables initialized to the values specified below: alphabet"abcdefghijklmnopgrstuvwxyz" shift-5 The user will enter a 5 letter word to be encrypted by the Caesar cipher. You can assume that the word will always consist of 5 alphabetical characters only. Two example outputs using the completed program follow. Your program must give the output in the same format as the outputs in these two examples. *Caesar Cipher Encryption* Please enter a 5 letter word: Damir Encrypted word: ifrnw *Caesar Cipher Encryption* Please enter a 5 letter word: kazoo Encrypted word: pfett

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

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books