4 ms·
Beware that IP addresses are only 32-bit and MAC addresses are only 48-bit. So hashing them individually won't do any good.
by yuhong 14y ago
Beware that IP addresses are only 32-bit and MAC addresses are only 48-bit. So hashing them individually won't do any good.
- TylerE 14y agoConcat them into a single 80 bit value and hash THAT however, and you should be more than fine. Even the 48 bit mac address alone is 281,474,976,710,656 possibilities, and thus likely rainbow-table proof, especially if salted.
- lawnchair_larry 14y agoPerhaps worth noting that mac addresses do not have 48 bits of entropy. You can prioritize the OUIs actually being used in consumer NICs and chop that down substantially. IP addresses don't have 32 bits of entropy either for that matter.
- TylerE 14y agoThat's true. However, with adequate salting it really shouldn't matter.
- heartbreak 14y agoI think the idea of the hash for IM is to prove uniqueness in a dispute. Salting the hash would make it useless in that case.