Hello,

I was gonna post this on Ask Lemmy, but then I thought maybe Technology would be a better fit for the theme. But then I saw it’s mostly news, so I thought perhaps Ask Lemmy would indeed be a better fit. If this is not the case, please point me to the right direction.

As a heads-up, I am not 'Murican, and never been to 'Murica, so keep that in mind.

Seeing the recent news with France trying to age-restrict pornographic material online, I was wondering and have sort of an idea, that I wonder if it is actually doable and actually good.

Hear me out: the gobermint likely already has your data, right? At least stuff like name, date of birth, etc. The gobirment could have a private and secure service, which websites and services could use to confirm certain requirements.

For instance: A website wants to confirm if you’re over 18. The website essentially asks the official gob. service, “is this user at least 18 years of age?”. The official gob. service essentially has to answer “yes, your requirements are met” or “no, your requirements are not met”, without giving away information on a person. The user gets prompted, being told what information is being required and whether they wish to share that. The official service wouldn’t know where the request is coming from, but the original website requesting the information generates and shows a temporary code, which is not related to the website at all and is sent to the gob. service, so that the user can confirm it is indeed the website they were using that is requesting this, and not a hijack of some kind. The gob. service, if allowed by the user, sends out this confirmation to the original website, without the gob. service knowing the website and without the website knowing the user’s info. The website then knows whether their requirements are met and can then act accordingly, such as by not allowing someone to access adult material if they do not meet the age requirement.

Does this make sense? Is it doable? Could it be a potential private and secure way of confirming user information without either party having access to the other’s information? Obviously, the idea could be worked on and polished, but as a starting point.

Edit: so, what I’m gathering from comments here:

  1. Som’o’y’all didn’t get it (no, you don’t got to log in to your porn tube of choice with an official gob. account)
  2. This cannot be done
  3. This could be done
  4. This is already a thing being worked on
  • nebulaone@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 hour ago

    I might be missing something, but they could just mass validate 100 IDs in person, without logging anything, then mix/shuffle 100 “person is an adult” codes (or even multiple per person) that aren’t directly connected to anyone and hand these out at random.

    This way neither the government, nor the website knows your real ID and your age can still be verified.

    Edit: Sure you can still somewhat be tracked by these codes, but this may be mitigated by handing out new or multiple codes and having them expire.

  • throwawayacc0430@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    ·
    8 hours ago

    My Proposal:

    1. The government creates a website that generates random rotating OTP verification codes that is viewable to anyone logged in to the website with their governemnt ID account. This would expire within X time, and a new one shows up.

    2. So you type in this code in the adult site

    3. Then site send that [code + timestamp of when they received] it to the government website

    4. The government side checks the code against the time stamp, then sends back a ✅️ if meets the minimum age limit, other wise sends back a ❌️

    5. The site get back the ✅️ or ❌️ and lets person access the site or denies them access accordingly.

    Everyone has the same code, but the code rotates and expires quickly. So kids would need an adult to get them access to adult content. Not impossible, but much harder. Its sort of like smoking or alcohol. Kids are always gonna try to find a way around it if they are determined.

  • ℕ𝕖𝕞𝕠@slrpnk.net
    link
    fedilink
    arrow-up
    17
    ·
    18 hours ago

    I am never going to use an official government service to sign in to a porn site.

    And I very much doubt that’s just a “me” thing.

    • lemmyknow@lemmy.todayOP
      link
      fedilink
      arrow-up
      3
      ·
      16 hours ago

      I didn’t say “log in to porn via gob.”

      I was rather proposing a way to privately and securely confirm age without either party (gob. and adult site) knowing each other’s info (i.e. porn site doesn’t get your info, gob. site doesn’t know you’re seeking adult content)

      And it isn’t an idea limited to pornography-related websites, but rather any website that wishes to confirm any information about the user, without directly getting the user’s info

      It’d be essentially a temporary certificate of sorts that proves a requirement, such as “18+”

      • macattack@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        15 hours ago

        IMO, your suggestion assumes that today’s government and tomorrow’s government will have the same ideals and viewpoints on pornography, and not for 1-2 administrations, but indefinitely. Being able to reverse engineer someone via metadata is possible as is, and likely will become even more finetuned as we AI evolves.

        As an American, there are plenty of examples under the current administration where data shared in confidence by undocumented immigrants are now being used to target them for deportation.

        It’s kind of like sharing data with a company indefinitely because of their current ToS, which is just a snapshot in time. Today’s “helpful” approach towards data collection becomes a key part of surveillance in tomorrow’s world.

        • lemmyknow@lemmy.todayOP
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          15 hours ago

          Website: 18+? Gob.: Yep ???

          The ideia is neither party is aware of the other’s info. The website wouldn’t have your data, and the gob. wouldn’t know what the information is for.

          Website knows, e.g. is the user 18+?, which the user agrees to share, but not anything else

          Gob. knows, e.g. you wanted to confirm being 18+ (better if it just didn’t know at all), but knows not what use you’ll make for that

          One side asks a yes or no question, the other gets a question (no source), answers it, the answer makes it back to the first side with no further info.

          Unless they can know exactly who you are because you proved to be 18+ or something. Granted, if it were your names, for say a social media profile, that’d be different

  • JustTesting@lemmy.hogru.ch
    link
    fedilink
    arrow-up
    3
    ·
    14 hours ago

    This can work, but with cryptography instead of the porn site connecting to a government service.

    The swiss government wanted to introduce electronic id a few years back which was a complete clusterfuck, every party would get all your private data even if they just needed ‘older than 18’, it was supposed to be implemented by various private companies that then sell it to the individual states, not really with gov oversight, so you have like 20 companies all with all the data, each of which could be hacked at any point etc.

    we forced a public vote on it in 2021 and rejected it with 65%.

    the use cases are pretty valid, like online pharmacies, ordering booze online, though of course you never know what they would require it for in the future.

    so now it’s 2025 and a new proposal, this time much more privacy focused, developed by the government, open source, seems like they did listen to a lot of the criticism.

    this blogpost goes into a bit of details on why unlinkability matters and that one-time-pads are one potential solution. And the whitepaper with more detail.

    i saw a presentation from the digital society on it earlier this year and from what i remember, you get a set of keys (and can create new ones if you run out) from which you can create derived keys that only contain relevant information. The other party can verify this directly, without a gov service. And since you use a new key each time, the porn site also cant crossreference with your booze site that you’re the same person, that kind of stuff. It all sounded pretty reasonable and like it would adress your points.

  • smiletolerantly@awful.systems
    link
    fedilink
    arrow-up
    5
    ·
    16 hours ago

    I think that at the bare minumum, the PORN<->GOV connection must not occur. How about this (simplified):

    • USER visits porn site
    • PORN site encrypts random nonce + “is this user 18?” with GOV pubkey
    • PORN forwards that to USER
    • USER forwards that to GOV, together with something authenticating themselves (need to have GOV account)
    • GOV knows user is requesting, but not what for
    • GOV checks: is user 18?, concats answer with random nonce from PORN, hashes that with known algo, signs the entire thing with its private signing key
    • GOV returns that to USER
    • USER forwards that to PORN
    • PORN is able to verify that whoever made the request to visit PORN is verified as older than 18 by singing key holder / GOV, by checking certificate chain, and gets freshness guarantee from random nonce
    • but PORN does not know anything about the user

    There’s probably glaring issues with this, this is just from the top of my head to solve the problem of “GOV should know nothing”.

    • nao@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      12 hours ago

      In step 2, why encrypt nonce + question? As user, I would like to see what I’m asking gov to sign for me.

    • lemmyknow@lemmy.todayOP
      link
      fedilink
      arrow-up
      3
      ·
      16 hours ago

      Hmm… sounds good, other than the amount of work getting and sending stuff everywhere. Though I guess if it were a one-time thing, that’d be fine. I’m used to no cookies and the cookies pop-up always coming back cuz the website never remembers, so my mind just went “too much work” but it could work if the website were to not prompt every time

  • Zwuzelmaus@feddit.org
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    17 hours ago

    The official service wouldn’t know where the request is coming from

    No, not doable.

    Such an info service can only be either serious or not. Think about it.

    If they try to do it the serious way, then the official source of information must know, and keep a log about, who is asking. And the user must get the opportunity to read this log, who has asked about them. Maybe they must even get the chance to approve or deny every single one of these requests.

    If they don’t try to do it the serious way, then their service will never be meaningful/sufficient in such countries where age verification is mandatory.

    • smiletolerantly@awful.systems
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      16 hours ago

      Not sure. How about this (simplified):

      • USER visits porn site
      • PORN site encrypts random nonce + “is this user 18?” with GOV pubkey
      • PORN forwards that to USER
      • USER forwards that to GOV, together with something authenticating themselves (need to have GOV account)
      • GOV knows user is requesting, but not what for
      • GOV checks: is user 18?, concats answer with random nonce from PORN, hashes that with known algo, signs the entire thing with its private signing key
      • GOV returns that to USER
      • USER forwards that to PORN
      • PORN is able to verify that whoever made the request to visit PORN is verified as older than 18 by singing key holder / GOV, by checking certificate chain, and gets freshness guarantee from random nonce
      • but PORN does not know anything about the user

      There’s probably glaring issues with this, this is just from the top of my head to solve the problem of “GOV should know nothing”.

      • Natanael@infosec.pub
        link
        fedilink
        arrow-up
        5
        ·
        15 hours ago

        What you want is cryptographic Zero-knowledge proofs, not regular encryption. See anonymous credentials protocols.

        And it does require every verifying entity to trust the issuer (each user could collect attestations from multiple issuers, to prove different things to different verifiers)

        Another issue is the risk of deanonymization by verifiers simply asking for more proof of many different properties, until you can be identified anyway

      • Zwuzelmaus@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        15 hours ago

        Much too complicated for no benefit.

        You had achieved the same with a certificate given to the user, signed (electronically) by GOV stating the user’s age.

        The problems are, as far as I can see: 1. this means the user must do all the work, and 2. maybe somebody, somewhere does not like to trust GOV, and 3. no “info service” can make money for nothing from it.

        • smiletolerantly@awful.systems
          link
          fedilink
          arrow-up
          2
          ·
          15 hours ago

          While that’s true from a technical perspective…

          How/where do you keep the certificate? If you either need an app for it, or need to manually install it on your device, most users would probably be out. The benefit of my suggestion is that you need absolutely nothing except a way to authenticate with GOV.

          1. is a Problem with all of these, that’s for sure.

          I fjnt get the part about the info service tbh

  • Leejon95@lemmy.world
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    18 hours ago

    Yes, such systems are in development and are called identity wallets. https://yivi.app/ for example has the idea of zero trust attribute sharing. You can request attributes the government knows and store these on your phone. You could then share an attribute like “over 18” with the porn site without the government knowing you shared it with them. Most identity wallets don’t want to touch the porn industry tho. So it isn’t used for that (yet).

      • Leejon95@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        12 hours ago

        The attributes are cryptographically signed by the provider. With their public key you can check if they are actually signed by them.

        • jaybone@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 hours ago

          To verify the signature with the public key, don’t you need to contact the service/party that signed it?

  • jacksilver@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    14 hours ago

    I always thought the simplest way to do it is to pass laws that require every website to provide a rating/content description and then leave it up to the end user to set acceptable levels. We don’t get mad for kids watching the wrong content on TV.

    Websites could be fined for either not providing or providing incorrect classifications.

    If people don’t want their kids to see that stuff, make sure the parents have the tools to enforce.

  • jaybone@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 hours ago

    What is to prevent me from giving my information to someone who is under 18? Or worse, it is stolen?

    Anyway what you are describing is very similar to SSO. But of course the service can validate the token, by asking the token generator (the gov service.) then the gov service sees that pornhub is asking about that token, now they know what website you are on.

  • Paige@piefed.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    17 hours ago

    Totally possible and something you can do already with digital ID. Checkout RealMe in New Zealand: https://www.govt.nz/browse/passports-citizenship-and-identity/proving-and-protecting-your-identity/use-realme-to-prove-your-identity-online/

    A big issue is that many countries are a decade behind in implementing this system. They’re effectively asking the liquor store to check customers are 18, without government ID existing. So now the private sector is creating ID solutions to avoid legal liability. It’s a real mess.

  • calabast@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    17 hours ago

    Hello yes, I am 82 years old. My name is Joe Biden, feel free to check my age with the government.

    • lemmyknow@lemmy.todayOP
      link
      fedilink
      arrow-up
      2
      ·
      16 hours ago

      You’d have to authenticate yourself with the gob., therefore proving your real identity. The gob. would then, for example, provide proof of you being 18+, if that’s what is relevant, without knowing what your use case is, and the website, without getting any further information about you, can then confirm you are indeed 18+ (gob. confirmed). Said confirmation would need to be temporary, to ensure fresh information (akin to 2FA TOTP, which changes after some time)

  • Almacca@aussie.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    14 hours ago

    The Queensland digital I.D./driver’s licence can already do this, and we’re hardly ahead of the curve on this. The only current limitation is companies accepting it.

  • It can be quite simple: the government, under user request, can generate a certificate that only contains the fact that you are more than 18 years old and is stored locally in your device. Since it’s the state the one issuing it, the info of the cert can be trusted.

    Then, when you log into a service requiring age verification, you log using your device that sends the info from your locally stored certificate, telling the website simply that you are not underage.

    The state doesn’t need to know how are you using the cert, and the website won’t receive any personal info because the certification authority is a trusted organsation so the info about it is automatically trustworthy.

  • TheWeirdestCunt@lemmy.today
    link
    fedilink
    arrow-up
    2
    ·
    18 hours ago

    How does the website ask if someone’s over 18 without knowing who they’re asking about? The website would still need to confirm who’s asking for access and then it’s back to the whole ID situation to make sure kids aren’t claiming to be their parents

    • Natanael@infosec.pub
      link
      fedilink
      arrow-up
      2
      ·
      15 hours ago

      You could tie it to requiring access to a digital ID (with password / PIN protection, etc), but yes kids could still “borrow” it

  • Flax@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    17 hours ago

    I think you’ll need to generate a OTP type thing from a government site that’s a message with a timestamp and maybe the code provided (and chosen by) the website signed by that site’s private key, then have the 18+ website check that it’s signed by the government.

    Basically, the digital equivalent of your teacher giving you a letter/consent form to bring home for mummy to sign and then return to the school.

    Possibly you could have a fingerprint that goes on it that only the government could recognise if the website hands it over to them (likely under court order) if you are concerned about fraud/people using other people’s accounts.