this post was submitted on 23 Apr 2025
683 points (99.9% liked)

Privacy

2019 readers
698 users here now

Welcome! This is a community for all those who are interested in protecting their privacy.

Rules

PS: Don't be a smartass and try to game the system, we'll know if you're breaking the rules when we see it!

  1. Be civil and no prejudice
  2. Don't promote big-tech software
  3. No reposting of news that was already posted
  4. No crypto, blockchain, NFTs
  5. No Xitter links (if absolutely necessary, use xcancel)

Related communities:

Some of these are only vaguely related, but great communities.

founded 5 months ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ricecake@sh.itjust.works 1 points 1 day ago (1 children)

I might have to go lookup their implementation. I feel like a good way of addressing your concern would be a secure hash of the IP address combined with a persistent random number.
The same IP would always map to the same output and you wouldn't be able to just pre-compute it and bypass everything.

[–] jaybone@lemmy.zip 2 points 1 day ago (1 children)

What’s the persisted random number? Sounds like a salt, but usually each user has their own salt right? I assume we are not talking about logged in users here? Or are we?

[–] ricecake@sh.itjust.works 1 points 1 day ago (1 children)

Since the goal is to create a correlation ID that maintains privacy, you need the result to be consistent. Hashing four billion IPs might take a minute, but it's fundamentally doable in a reasonable time.

By using some much large value that you keep secret, you're basically padding the input to make the search space large enough that it's not realistically able to be enumerated.

Normally each user would have their own salt so that if two users have the same password, they hash to different values. In this case, you would want two users with the same IP to map to the same value, and simply for that value to not lead to an actual IP address.

[–] jaybone@lemmy.zip 1 points 1 day ago (1 children)

So you just use one salt for all IP addresses, but you keep it secret.

[–] ricecake@sh.itjust.works 1 points 1 day ago

Essentially.

I'm sure there's other ways to accomplish the goal but that's the first one that came to mind.