Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python using a Caesar cypher: Using the ascii table (can be looked up online): Using this setup of code please: Getting this exact output:

In Python using a Caesar cypher: image text in transcribed
Using the ascii table (can be looked up online):
image text in transcribed
image text in transcribed
Using this setup of code please:
image text in transcribed
Getting this exact output:
image text in transcribed
1) Go to called cipher(phrase,snift) that accepts two parameters: a string phrase and an integer shift. The integer shift can be positive, negative or zero. Mentally form a ring of characters made up of the character to see what a Caesar cipher is. Write a function space (ascii code 32) through the character '(ascii code 126) in the ASCII table Shift the characters in the phrase specified by the number shift. If it is positive, shift the phrase to the right, or up. If it is negative, shift the phrase to the left, or down. Your function should be able to wrap around as well. Hence, cipher1) will yield"" and cipher 2) will yield "". Hint: there are 95 characters in the ring. That is, 95ord)-ord)+1. You may want to use the following functions in your code: ordi'A') - 65, and chrf65)-A', and " joinlrA: 8)-AB: (200 points)

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

13

Answered: 1 week ago

Question

Understand the role of corporate design in communications.

Answered: 1 week ago