Suppose we hash a message hello using the following


Suppose we hash a message 'hello' using the following method.

Convert each letter in the message to its equivalent numbers using the method below:

a = 1, b =2, c= 3, ..., z = 26. After converting it to numbers, multiply all the numbers together and add a random number between 0 to 255. The last 4 digits of the resulting value is the hash value.

As an example, the hash value of 'hello' = Last 4 digits of (8 x 5 x12 x 12 x 15 + 255) = 6,655.

Is this a good hashing method?

Which is the answer

  • Yes. The hash value is always the same for the same message.
  • No. It is easy to obtain the message from the hash value.
  • No. The hash value is always different for the same message.
  • Yes. There is no way to obtain the message from the hash value.

Solution Preview :

Prepared by a verified Expert
Finance Basics: Suppose we hash a message hello using the following
Reference No:- TGS02669474

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)