Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Www https repl it languages python3

27/10/2021 Client: muhammad11 Deadline: 2 Day

Project 2: Cipher implementation in python

The primary goal of this project is to understand how Caesar cipher works Here, we are using python programming language to implement the Caesar cipher algorithm. It is not mandatory to know python in order to run the program. The main focus is to understand how the input message is converted into ciphertext with the help of encryption logic and then use a similar pattern to perform decryption. You will be provided with a python code that has implemented encryption logic. Your task is to understand the logic and implement decryption by simply changing the logic. Python environment setup: Students can install python working environment on their local computer or they can use the online python IDE in order to run the program.

i. Installing Python in Windows: https://www.youtube.com/watch?v=yiCUmJon-5g ii. Installing Python in MacOS: https://www.youtube.com/watch?v=0hGzGdRQeak iii. Alternatively, you can simply go to https://repl.it/languages/python3 and copy-paste the

code given in the file and then run the code online. Caesar cipher: The Caesar Cipher technique is one of the earliest and simplest methods of encryption technique. It’s simply a type of substitution cipher, i.e., each letter of a given text is replaced by a letter some fixed number of positions down the alphabet. For example, with a shift of 1, A would be replaced by B, B would become C, and so on. The method is apparently named after Julius Caesar, who apparently used it to communicate with his officials. Thus to cipher a given text we need an integer value, known as a shift which indicates the number of positions each letter of the text has been moved down. The encryption can be represented using modular arithmetic by first transforming the letters into numbers, according to the scheme, A = 0, B = 1,…, Z = 25. Encryption of a letter by a shift n can be described mathematically as.

https://www.youtube.com/watch?v=yiCUmJon-5g
https://www.youtube.com/watch?v=0hGzGdRQeak
https://repl.it/languages/python3
Note: In order to perform decryption, the key must be same as the one used for encryption. In our case, we are using the 3 as a key for encryption.

Encryption: You will be provided with a python file in this assignment. Open it and look for the below line as highlighted. Let’s compare the code with the logic explained below. The most important part of the code is logic which is as below:

result += chr((ord(char) + s-65) % 26 + 65) Let’s compare the highlighted part with the logic of encryption.

E(x) = (x + n) mod 26,

which can also be re-written as (x + n) % 26

In Python file: ord((char) + s - 65) % 26 In the code, the value x is represented as ord(char), s is represented as n and 65 is

subtracted in order to convert ASCII value of upper-case character to base 1. (i.e. A

has ASCII value of 065. In order to perform addition, the base should be 0 so we

subtract 65 from ASCII value and then add it again which is shown in green color.

The same goes with any alphabetic character).

Logic: (x + n) mod 26 Code: ord(char) + s - 65) % 26

x ord(char)

n: Encryption key s: Encryption key

Decryption: The decryption is very simple to implement. Given the logic, you have to change the logic of the code. The formula for the decryption is as below: D(x) = (x - n) mod 26

//Code

In python code: result += chr((ord(char) - s-65) % 26 + 65)

//Replace this part in the decryption file line 11 and run the code. Check whether decryption works properly or not. //Replace the line in the given python code as the above highlighted line and it will perform decryption Based on the logic, you have to make changes in the above part in the code in order to perform decryption. Check whether the decryption is working as expected (i.e., encrypted message converts to the original message if the decryption is correctly performed). Note: The function accepts CAPITAL letters as sinput.

Submit the decryption code as a part of the assignment in the word file as stated below.

Answer the following questions based on the activities you performed and submit the word file on canvas:

i. What are the drawbacks of Caesar cipher? ii. What can be done to improve the Caesar cipher technique? iii. Write down the code for decryption in the word file. (Copy paste the modified code)

Credits:

1. https://www.geeksforgeeks.org/caesar-cipher-in-cryptography/

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Homework Tutor
Homework Master
Assignment Hut
Assignment Helper
Finance Homework Help
WRITING LAND
Writer Writer Name Offer Chat
Homework Tutor

ONLINE

Homework Tutor

I have written research reports, assignments, thesis, research proposals, and dissertations for different level students and on different subjects.

$37 Chat With Writer
Homework Master

ONLINE

Homework Master

I will be delighted to work on your project. As an experienced writer, I can provide you top quality, well researched, concise and error-free work within your provided deadline at very reasonable prices.

$50 Chat With Writer
Assignment Hut

ONLINE

Assignment Hut

I have read your project details and I can provide you QUALITY WORK within your given timeline and budget.

$23 Chat With Writer
Assignment Helper

ONLINE

Assignment Helper

I find your project quite stimulating and related to my profession. I can surely contribute you with your project.

$36 Chat With Writer
Finance Homework Help

ONLINE

Finance Homework Help

I have written research reports, assignments, thesis, research proposals, and dissertations for different level students and on different subjects.

$38 Chat With Writer
WRITING LAND

ONLINE

WRITING LAND

I am an academic and research writer with having an MBA degree in business and finance. I have written many business reports on several topics and am well aware of all academic referencing styles.

$45 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Create an annotated bibliography based on the following topic: The impact of space travel on the human body. - Cssa trial papers english - Dulux acratex acrashield concrete - Interviews with community members sketches drawings explanatory material - Emerging Threats - Elena is attending mandatory therapy sessions - Cleanse herb burners on uncharted isles - Tomago aluminium employee benefits - Circuit town commenced a gift card program - Examples of random error - Forum - 150-250 words - Drake precision dental lab - 1331 crissey circle brookings or - Monthly retirement planning worksheet answers - LDR/711A: Leadership Theory And Practice Wk 4 - Case Study Analysis - Should smartphones be allowed in school essay - Mask you live in discussion questions - Human Resources - Bio rad western blot sandwich - How many pmat cycles does mitosis involve - Math 104 final exam strayer - Summary - Zappos works to improve customer service employee satisfaction by - Poem journal and glossary - Huron company produces a commercial cleaning - Amy ( 12 pages due by 24th OCT) - Donald kagan what is a liberal education summary - Ethics for the new millennium sparknotes - Jake bilsborrow go fund me - Chicken killing cone tractor supply - 2.6 radians to degrees - Resource hierarchy solution - A level physics b - Assignment - The damnation of a canyon is unconvincing - Business continuity plan - Security breach access control - Essay on learning to drive a car - Puls power supply sl20 - Purdue university io psychology - Air filter home argos - Dr nicole goddard oncologist canberra - How to calculate cash discount and trade discount - Phototgraphy reading - ABOUT WRITING - The curious incident of the dog in the nighttime quotes - Week 11 - How to find the endpoint when given the midpoint - NURS-6050N-66/NURS-6050C-66-Policy & Advocacy -for walden university - 150-300 words prison warden united states - What is missing in this particular stanza of the erlking - A glass of milk story author - Bolman and deal reframing organizations powerpoint - Fabula mirabilis latin story translation - Discussion board - Nco 2020 essay - Trends and issues Topic 1 DQ 1 - Ati medication template example - Claim most adults would erase all of their personal - Business - Chapter Instructional Summary - Impossible quiz hacked unlimited lives and skips - White hat or gray hat hacking Choose one of these areas explain why a company might benefit from hiring someone to hack into their systems. - Mcafee agent for linux installation guide - Romeo and juliet seals - DQ w4 635 - Amenable to scientific study - St andrews recycling center - Hectors world episode 1 - The flame test lab - Dr samantha batt rawden - Image processing - Dinosaur adventure pontchartrain convention & civic center february 28 - Starwood hotels and resorts worldwide inc 2007 case study - Marketing plan kotler - How to draw a soda can - What are the three main steps of cellular respiration - Athlean x xero program pdf - Example of quantitative research critique for nursing - One friday morning langston hughes setting - Gale force surfing case study answers - Adria lopez created success systems on october 1 2013 - Harvey norman belrose supa centre - The pure in heart need no lawyers meaning - Arbonne lemon protein balls - Mary fisher speech analysis - Data stewardship and the national health information network nhin - Laparoscopic hiatal hernia repair with mesh cpt code - Operational acceptance testing explain with example - 2 identify professional disciplines that influence human services - Watson's 10 carative factors - 7 2 1 short answer ethics in humanities - Behind the beautiful forevers discussion questions and answers - Pediatric Clinical Pearl Case Study Assignment - George mason engineering building - High class indian escorts - 1911 idiot scratch prevention tool template - Rcvs day one competences - The Genesis of Labor Unions; The Teamsters - Prepare a business case for the global treps project