News for hackers. Stuff that matters.
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by stvltvs on Wednesday January 01, 2025 @05:16PM (#42569774)
Do these cryptographic tools prevent the government entity providing them from knowing which websites verify your age? If not, then that's too much Uncle Sam watching over your shoulder as you watch your porn.
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by some_furry on Wednesday January 01, 2025 @06:17PM (#42570114)
It depends on the tool.

https://zkdocs.com has some protocols described, if you're curious to learn more about this space.

Re:Pornhub Is Now Blocked in Almost All of the U.S. South by quotemstr on Wednesday January 01, 2025 @06:08PM (#42570069)
Yes, they do precisely that, and in a way that depends only in math and cryptography. No possibility of leaking some naughty list after a hack.
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by stvltvs on Thursday January 02, 2025 @09:47AM (#42574854)
Can a malicious gov site gather a list of which sites are asking for your verification?
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by quotemstr on Thursday January 02, 2025 @11:10AM (#42575657)
No. The output of the government site is an attestation of age. It's a bundle of bytes. The site doesn't know or care what you do with the attestation.
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by stvltvs on Thursday January 02, 2025 @04:37PM (#42579216)
How does the website prove compliance with the law under this scheme?
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by quotemstr on Thursday January 02, 2025 @08:13PM (#42581059)
Same as a liquor store.
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by Izkata on Wednesday January 01, 2025 @10:02PM (#42571213)
For a simple example, a JWT doesn't need to be done with shared secrets, and can instead use RSA private/public keys. The payload could contain just two fields like "issued" (to ensure the token isn't shared and reused) and "age" (what you want to share), you'd be able to decode the payload to see what's in it and know there's no identifying information, and the government site would provide the public key allowing anyone (like a porn site) to verify the JWT hasn't been tampered with without knowing who it was that got the JWT.
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by stvltvs on Thursday January 02, 2025 @09:46AM (#42574844)
Can the gov site see who requests age verification? They already have to know who they're verifying because how else would they verify age?
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by Izkata on Thursday January 02, 2025 @11:11AM (#42575675)
Yes, but the idea is they wouldn't know why or for what site. In the JWT version I'm imagining, the porn site would say "go to your government website, generate this token, then copy/paste it here". There's no connection between the porn site and government site, and if the public key was retrieved and cached earlier there isn't even a timing-based way to connect them.
Re:Pornhub Is Now Blocked in Almost All of the U.S. South by some_furry on Thursday January 02, 2025 @11:28AM (#42575863)
(JWT in general is a bad solution, but let's ignore that for the sake of discussion.)

I think you're severely underestimating the efficacy of traffic analysis and correlation efforts.

PrivacyPass is a better starting point, IMHO. The Cwtch developers (Open Privacy) even implemented PrivPass over Ristretto255, which is objectively awesome.

Re:Pornhub Is Now Blocked in Almost All of the U.S. South by stvltvs on Thursday January 02, 2025 @04:28PM (#42579134)
Didn't find many details, so please excuse the questions.

So the user would get a number of signed tokens from the gov to prove age, then a token could be shared with a site that verifies age without connecting to gov, assuming it's already aware of the gov's public key?

What prevents the same token from being used by more than one person?

How can the site prove compliance with the law? Will they need to store the tokens for each user? Can the gov tie a stored token back to a particular person that that verified?

Re:Pornhub Is Now Blocked in Almost All of the U.S. South by Izkata on Thursday January 02, 2025 @05:49PM (#42579867)
Yeah, I was assuming the JWT might not be the best, but my point was that it's a simple example that doesn't require someone to read a math-heavy page.

> I think you're severely underestimating the efficacy of traffic analysis and correlation efforts.

The porn site would have the public key already stored/cached, so there isn't any traffic to correlate. There's still an issue with the first request, but like I said, this is a simple example that's easy to understand without getting into anything math-heavy.