3 ms·
"To ensure that each key gets a unique permutation, we also have to make the hash function depend on the key. But this is not difficult - the solution is to con
by LgWoodenBadger 5y ago
"To ensure that each key gets a unique permutation, we also have to make the hash function depend on the key. But this is not difficult - the solution is to concatenate the key with each server or to use the server ID as a hash seed."
Did the author mean to say "use the key as a hash seed?" Otherwise, I don't see how using server ID as a seed makes the hash dependent on the key.
- ComputerGuru 5y ago“Concatenate the key with each server” -> use (key + unique id) as the key, giving a deterministically unique result. “Use the server id as the hash seed” -> apart from the encryption, seed the result by first hashing the unique id then updating with the actual content before finalizing the hash, depending on the hash algorithm in question akin to keyed_hash(unique_id, actual_payload)