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

  Given a hash function hkey prepare a java simulation

given a hash function hkey prepare a java simulation program to determine each of the subsequent quantities after

  Infix expression and translate it to a postfix expression

program below is suppose to take in a infix expression and translate it to a postfix expression, but I need a way for the user to be able to input the expression using a scanner and output the postfix.

  Describe the project requirements and other assumptions

Summarize the project requirements and other assumptions (i.e., budget, human resources, workload, environmental dependencies, etc.). Define a work breakdown structure and describe the methodology behind constructing one

  Create java application-input miles driven and gallons used

Create Java application which will input miles driven and gallons used (both as integers) for each tankful. Program must compute and display miles per gallon obtained for each tankful.

  Determine the decision of java

Determine the decision of Java as the platform to develop this program. Identify the Java-based technologies utilized in this project and analyze each of them. Then, provide discussion on the purpose of each of the Java-based technologies utiliz..

  Demonstrate the use of array or arraylist

It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The application should ask for the name of each salesperson being compared.

  Create an application that uses a graphic interface

Create an application that uses a graphic interface to capture room assignment data for dormitory residents and writes that data to a random access output file.

  Establish a connection to the mycustomers database

Write a Java program to establish a connection to the MyCustomers database using the JDBC driver to retrieve the entire Customers and Orders table.

  Prepare a java application will read the database file

Prepare a java application will read the database file. The path of the database file will be supplied by a run-time parameter. If the database file does not exist, the user will be told the database does not exist.

  Develop a java program that simulates the queues in a bank

Develop a java program that simulates the queues in a bank. Implement the event-driven simulation of a bank. A queue of arrival events will represent the line of customers in the bank.

  Calculates the minimum maximum and average for each quiz

Write a Java application that calculates the minimum, maximum, and average for each quiz. Print the output results in a table format using a text area. Use loop and if statement control structures as well as Array data structure

  Create a frame and set its layout to flowlayout

Create a frame and set its layout to FlowLayout, create two panels and add them to the frame and Each panel contains three buttons. The panel uses FlowLayout.

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