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

  Problem aa savings account object holds a nonnegative

problem aa savings account object holds a nonnegative balance and provides depositk and withdrawk methods where

  Write java statements that use a for each loop to cycle

Write java statements that use a for each loop to cycle through all the elements in an ArrayList of doubles named grades.

  Design a class that can be used to hold information

Implement and design a class that can be used to hold information about a musical note - Prepare a complete java program the default constructor should set a note to a middle C quarter note.

  What is the advantage of a double-linked list

What is the difference between the size and the capacity of an ArrayLi st? Why might we have a constructor that lets us set the initial capacity?

  Create a third string consisting of the first half of string

Show the length of both strings - Create a third string consisting of the first half of string (1) and the second half of string.

  What secret does soraya tell amir

What secret does soraya tell amir and how does amir react to this information

  What balance will be stored

Let Account be the bank account class discussed. What balance will be stored in acct1, acct2, and acct3 after the following statements have been executed

  Write a recursive method to print all permutations of string

Write a recursive method to print all the permutations of a string. For instance, for a string abc, the printout is: abc acb bac bca cab cba

  Ood methodology

Your local police department wants to design new software to keep track of people, property, and criminal activity. List at least three classes you think should be in the design. For each class, identify some data members and methods.

  What is method overloading

1. What is method overloading? 2. What is the purpose of a constructor? 3. How do you call a method of one class from a method of another class?

  I had to call a webservice

I had to call a webservice (1st line of code) and then from there created a loop but keep getting an error every time on the .getBusiness - I don't know what I should be using there instead of getBusiness.

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

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