For this task you will write an application of the following simple hashing algorithm using Python basic operations and list and string methods. The block diagram of the algorithm will be shown in the following image: Read the required String Str = "Your full name" Convert it to ASCII Generate an Integer random M Random 9798798... Print the Hashing Code hx a9e70af... Store the results into list of numbers Asciilist [77, 8, 9, .. Find the product of the list values Prod=9798798... XOR with both numbers num= 8987987... Convert to Hexadecimal Notation hx = a9e70af... Trim the results to 16 Characters only

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Conditions:
The system has several condition and pre requisite:
1- The input string is not constant so, Please uses your full name as input string, Capital letters
annotation: for example: "John Joseph Dow"
2- Uses appropriate function to convert the input string into List of ASCII decimal numbers,
3- The example of the ASCII table is shown. the following link:
https://www.rapidtables.com/code/text/ascii-table.html
4- The product number is the results of multiplication of all element in the list,
5- XOR, is the Exclusive OR operation between two numbers.
6- To generate the random number uses a Uniform distributed random number generator range
between (Length of the string and 2000000), integer only.
7-
Uses all the time constant seed in random generation to get the same results in each run.
8- Uses the appropriate python method to convert to Hexadecimal results.
9- Trim (cut the extra characters), your resulting number into 16 characters only,
10- Print the results.
11- To check your code run the code using the string: Hello World, the resulting hash is:
Oxc2307a96c6f43, when using random generation with seed (2)
Your code must comprise the following components:
Prompt for user input, Or print the input String
Convert the ASCII.
● Calculate the Product Number
●
●
●
●
●
●
●
Calculate the EX OR
Generate a random, with constant seed
Convert to Hexadecimal
Trim the results into 16 Charters
Committee the Code
Print the results
Code Generate correct results
Transcribed Image Text:Conditions: The system has several condition and pre requisite: 1- The input string is not constant so, Please uses your full name as input string, Capital letters annotation: for example: "John Joseph Dow" 2- Uses appropriate function to convert the input string into List of ASCII decimal numbers, 3- The example of the ASCII table is shown. the following link: https://www.rapidtables.com/code/text/ascii-table.html 4- The product number is the results of multiplication of all element in the list, 5- XOR, is the Exclusive OR operation between two numbers. 6- To generate the random number uses a Uniform distributed random number generator range between (Length of the string and 2000000), integer only. 7- Uses all the time constant seed in random generation to get the same results in each run. 8- Uses the appropriate python method to convert to Hexadecimal results. 9- Trim (cut the extra characters), your resulting number into 16 characters only, 10- Print the results. 11- To check your code run the code using the string: Hello World, the resulting hash is: Oxc2307a96c6f43, when using random generation with seed (2) Your code must comprise the following components: Prompt for user input, Or print the input String Convert the ASCII. ● Calculate the Product Number ● ● ● ● ● ● ● Calculate the EX OR Generate a random, with constant seed Convert to Hexadecimal Trim the results into 16 Charters Committee the Code Print the results Code Generate correct results
For this task you will write an application of the following simple hashing algorithm using Python basic
operations and list and string methods.
The block diagram of the algorithm will be shown in the following image:
Read the
required
String
Str = "Your full name"
Convert it to
ASCII
Generate an
Integer random M
Random 9798798...
Print the Hashing
Code
hx = a9e70af...
Store the results
into list of
numbers
AsciiList = [77, 8, 9, ..
Find the product
of the list values
Prod = 9798798...
XOR with both
numbers
num= 8987987...
Convert to
Hexadecimal
Notation
hx = a9e70af...
Trim the results to
16 Characters only
Transcribed Image Text:For this task you will write an application of the following simple hashing algorithm using Python basic operations and list and string methods. The block diagram of the algorithm will be shown in the following image: Read the required String Str = "Your full name" Convert it to ASCII Generate an Integer random M Random 9798798... Print the Hashing Code hx = a9e70af... Store the results into list of numbers AsciiList = [77, 8, 9, .. Find the product of the list values Prod = 9798798... XOR with both numbers num= 8987987... Convert to Hexadecimal Notation hx = a9e70af... Trim the results to 16 Characters only
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY