edited by
2,325 views
0 votes
0 votes

Which among the following statement(s) is(are) true?

  1. A hash function takes a message of arbitrary length and generates a fixed length code
  2. A hash function takes a message of fixed length and generates a code of variable length
  3. A hash function may give same hash value for distinct messages

Choose the correct answer from the options given below:

  1. $(i)$ only
  2. $(ii)$ and $(iii)$ only
  3. $(i)$ and $(iii)$ only
  4. $(ii)$ only
edited by

2 Answers

0 votes
0 votes

Answer is (C).

  1. A hash function takes a message of arbitrary length and generates a fixed length code. This is correct, this is directly from definition of hash function.  Ref: https://en.wikipedia.org/wiki/Hash_function
  1. As I is correct II is wrong.
  1. This is true. eg: Hash function N%8, this will generate same values for 1 as well as 9.

(Even in cryptographic hash functions collision happens, just that it is not easy to find colliding instances).

0 votes
0 votes

hash function is any function that can be used to map data of arbitrary size to fixed-size values. The values returned by a hash function are called hash valueshash codesdigests, or simply hashes. The values are usually used to index a fixed-size table called a hash table. Use of a hash function to index a hash table is called hashing or scatter storage addressing.

option c

Answer:

Related questions

0 votes
0 votes
1 answer
1
go_editor asked Nov 20, 2020
1,937 views
Using ‘RSA’ public key cryptosystem, if $p=3$, $q=11$ and $d=7$, find the value of $e$ and encrypt the number $’19’$$20, 19$$33,11$$3, 28$$77, 28$
1 votes
1 votes
1 answer
4
makhdoom ghaya asked Jul 11, 2016
2,270 views
Match the following cryptographic algorithms with their design issues : $ \begin{array} {cIcI} & \textbf{List-I} & & \textbf{List-II} \\ \text{a.} & \text{DES} & \te...