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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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