When registering some data in a web application, I would like to make sure that I can identify data that came at different times, but from the same IP address. On the other hand, to ensure confidentiality, since the data will be published publicly, I would like to make sure that the actual IP address cannot be restored. Therefore, I need a one-way mapping of IP addresses to some other strings that provide a 1-1 mapping.
If I understand correctly, then MD5, SHA1 or SHA256 may be the solution. I wonder if they are too expensive to handle?
I would be interested in some solution though, if Perl had an implementation that would be even better.
source
share