To fight vote fraud, I need to store IP addresses in my database but I want to make them anonymous. The only information that I need is if two addresses are the same ... I think.
To prevent voting manipulation in a public web site, is it enough to compare IP addresses for equality?
For transparency/verification purposes, I'd like to allow users to download the voting data. Therefore, I have to hash the IP addresses in a suitable way. Which hash method do you suggest and why?
Comparing public IPs wont be enough. You will let only one vote from few countries and from corporates, which have one external IPs.
Best way to do it is use multiple methods to detect the fake votes.
For anonymizing the IP just make keyed hash of IP.