What is the hash function in java

Assignment Help JAVA Programming
Reference no: EM13941382

Bob believes that he has come up with a nifty hash function. He assigns a numeric value VChar to each letter in the alphabet equal to the letter's position in the alphabet, i.e., VA = 1, VB = 2, ..., VZ = 26. For a message, he calculates the hash value H = (VChar 1 x VChar 2 x VChar 3 ...x VChar N) mod(26). Bob uses this function to send a one-word message, PANEL, to his banker Bill, along with his calculated hash value for the message. Alice is able to intercept the message, and generates an alternative message that has a hash value that collides with Bob's original hash value. Show a message that Alice may have spoofed, and demonstrate that its hash value collides with Bob's original hash.

Va = 1 H= (16 * 1 * 14 * 5 * 12) mod 26
Vb = 2 p a n e l
Vc = 3
Vd = 4
Ve = 5
Vf = 6
Vg = 7
Vh = 8
Vi = 9
Vj = 10
Vk = 11
Vl = 12
Vm = 13
Vn = 14
Vo = 15
Vp = 16
Vq = 17
Vr = 18
Vs = 19
Vt = 20
Vu = 21
Vv = 22
Vw = 23
Vx = 24
Vy = 25
Vz = 26

Reference no: EM13941382

Questions Cloud

Purchased in the foreign exchange market : Suppose that 1 Swiss franc could be purchased in the foreign exchange market for 60 U.S. cents today. If the franc appreciated 10% tomorrow against the dollar, how many francs would a dollar buy tomorrow?
Explain why this influence continued through these periods : Explain why this influence continued through these periods and discuss at least three specific representations of artistic endeavors that reflect the continued but changing influence of religion on art.
Korean traditional foods and introducing to foreigners : In my restaurant, there is a project about making new menu with Korean traditional foods and introducing to foreigners. There are many Korean restaurants in Gold Coast, but the restaurants treat some of famous food such as hot pot, BBQ grill, Bibi..
Finance the construction of a new plant in montreal : You are the vice president of International InfoXchange, headquartered in Chicago. All shareholders of the firm live in the United States. Earlier this month, you obtained a loan of 5 million Canadian dollars from a bank in Toronto to finance the con..
What is the hash function in java : Bob believes that he has come up with a nifty hash function. He assigns a numeric value VChar to each letter in the alphabet equal to the letter's position in the alphabet
What are the strategic investment implications : What are the strategic investment implications of your beliefs in stock market efficiency?
Higher education course in relation to personal development : Evaluate the advantages and diadvertages of following a Higher Education Course in relation to own personal development, career aspiratins (studying degree course) aspirations eg like to study Nursing.
Identify the purpose of business plan : 1. Identify the purpose of your business plan. 2. Identify and review the essential components of your business plan.
Review your financial management of your department : Describe your thoughts about having an outside auditor review your financial management of your department. What would be your reaction if the auditor found that supplies were unaccounted for, and what causes would you consider for this finding

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implements both the quicksort and mergesort algorithms

Write a program that correctly implements both the Quicksort and Mergesort algorithms. The program should generate an array of 500 random numbers in the 1-100 range. The program should sort the same set of numbers and keep time stamps of how long it ..

  Write a java program that prompts the user

Write a Java program that prompts the user to input three numbers.  This program should then output the numbers in an ascending order.

  Ask user to enter a list of names

Write a program that ask a user to enter a list of names. When you finish, The program will show the total number of characters in all the names.

  Write a program to solve rsa

Write a program to solve RSA, Use either Java or "VERY DETAILED" pseudocode. Take input for p, q, e, the number to encrypt and the number to decrypt.

  Create a base banking account

Create a base banking account. Decide what characteristics are common for checking and saving accounts and include these characteristics in the base class

  Write down a java application which inputs three integers

write a java application that inputs three integers from the user and displays the sum average product smallest and

  Rationale for declaring an array of objects of the class

Explain the dimension of the array and why you chose that number of elements for the object array.Can you give the answer ASAP?

  Classes using set and get methods

Create a java program that contains two classes using set and get methods. I need the program to return the area and perimeter of a rectangle. I wrote a program and he returned to me saying I used the wrong constructors and didn't create a the sec..

  Create and code a program that uses three parallel numeric

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays.

  Application using arrays to manage personal financial record

design a Java application using arrays to manage personal financial records which include expenditures and incomes.

  The department of community affair- jail report

The Department of Community Affairs (DCA) for the State of Georgia performs many functions including gathering statistics and doing research. DCA provides a monthly jail report that provides some interesting information about jails in the state.

  Discuss how an interface differs from a class

Discuss how an interface differs from a class, how interfaces are defined, and what does implementing an interface mean.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd