Suppose I have some password x
, and two different hash functions h1
and h2
. I can then compute the hash y1 = h1(x)
and y2 = h2(x)
.
- Is there any sort of vulnerability in this case? More specifically, is it possible to get
y1
fromy2
and vise versa? Is there anything else I need to look out for?
This is more of a theoretical question, which is partly why I am not specifying any specific hash functions. Another way to phrase this question is as follows.
Does security in this specific case come down to the "correct" selection of the hash function pairs? Or does it not matter?
Now, replace "hash" in this question with "key derivation function". Does it make any difference?