dimanche 3 mai 2020

Looking for Hash Function

I am looking for a hash function with the following properties

  1. It maps an arbitrary string uniformly between 0 and 1
  2. The hash function output is independent of the length of the string
  3. The hash function accepts a random seed
  4. For a given random seed the mapping from string to (0,1) is deterministic meaning if Alice and Bob calculate the hash for a given string and random seed they will both get the same value
  5. I am not worried about security. I don’t care if someone in theory could reconstruct the set of strings given random seed and hash value

Would be great to get some ideas.




Aucun commentaire:

Enregistrer un commentaire