Unofficial Hacker News companion — get notified on comment replies, and more.

Anthropic has made a major breakthrough in theoretical cryptanalysis (opens external site)

648 points by bifftastic 3 days ago | twitter.com | 639 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (25)

  1. Visa and Mastercard just issue you a 100-thick pad of post-it notes with one-time use numbers (aka one-time pad) you carry around with you everywhere, and you use the number on top, peel it off and throw it away for every transaction. One time pads are secure as long as the RNG used to generate them aren't compromised.
    Replies (4)
    1. We could also imagine mailing TB-scale one-time pads, maybe backed by cheap tapes (with prefetching to hide latency).

      To make it less annoying, users could pick a single OTP service, which then talks to other services with physically secure links when possible, or with their own OTPs.

      Devices could come with OTPs pre-loaded. Hopefully they'll make them replaceable...

      Add in Carter-Wegman MACs, and we can get something like TLS 2.0 with information-theoretic security.

      Replies (2)
      1. information-theoretic security, but with the huge caveat that the OTP service can read and modify anything you send to another party, right? In this model there is no way to make the OTP service untrusted, since it would need to de-encrypt the message from you and re-encrypt the message for the receiving party? Without directly exchanging OTPs with the subject of your communication there is no way to provide authentication or secrecy, right?
        Replies (2)
        1. You can compose OTPs pretty easily and use multiple pads, which would all have to be intercepted/collude to break the system. It doesn't provide authentication, but it would still be secret from any other party under some threat models.
        2. You're right, although there could be a couple workarounds

          - Yubikey-style OTP devices for certain sensitive services like banks. (Granted, less convenient than what we have today.)

          - A scheme with multiple OTP services can be made secure if at least one is honest. In a way this would be an improvement, since TLS basically assumes all root CAs are honest. It would increase costs though.

      2. There are basically no physically secure links.
        Replies (2)
        1. I think a lot of intra-datacenter links could be considered secure enough. We have to trust datacenter staff, but typically we already trust them not to extract secrets from servers etc.

          Granted backbone providers might need to use their own OTPs, so it could be the end of very cheap backbone traffic.

          Replies (1)
          1. https://en.wikipedia.org/wiki/MUSCULAR

            "In the program, data was obtained through a network tap between individual data centers of Yahoo! and Google. To what extent the program exists as of 2026 is not publicly known."

            Replies (2)
            1. Exactly. That single slide prompted Google to stop trusting their private inter-DC links and start encrypting communication between DCs.
            2. Those were inter-datacenter links though; my argument is that intra-datacenter links can be secure enough.

              (Not that it's implausible for the government to tap say a link in a meet-me room, but it's harder to do covertly. And if they can do that, they could probably also just tap a server's memory bus or something.)

        2. Letsencrypt relies on physically secure links.
    2. There would never exist a need for such a ridiculous method.

      If public-key cryptography did not exist, Visa and Mastercard would not be able to communicate directly with you, but only with your bank and a big bank would also not communicate directly with you, but only with the local branch were you had opened accounts by going there in person.

      When you would open bank accounts by being physically present at a bank agency, you would pair your authenticating device with a bank server, when the pairing devices would exchange pre-shared secret keys, where each customer has a distinct pre-shared key, randomly generated.

      Then online banking could be done like today. For a credit or debit card usable in an ATM, each card would have to contain a microcontroller with its own pre-shared secret key, to be able to authenticate itself when inserted in an ATM.

      The only serious problem of such a banking system is that the security of the bank servers that store databases with pre-shared secret keys of the customers and of the cards would be critical. If someone would hack such a server and access the content of the database, they could impersonate any customer and transfer their funds.

      Replies (1)
      1. That's just plain PSK. In case of SCRAM the authenticator stored on the server can't be used to impersonate the client.
        Replies (1)
        1. SCRAM does only authentication, not session key exchange.

          The SCRAM authenticators cannot be used to impersonate a client for the same reason as an /etc/passwd or /etc/shadow file.

          Obviously, a database with pre-shared secret keys should stay encrypted on the SSD/HDD, so if the server were hacked, reading the file system would not be enough to obtain useful information, the same as with the hashed SCRAM authenticators.

          Nonetheless, if a hacker would obtain a control over the server that is privileged enough, to be able to examine process memory, then the unencrypted secret keys could be accessed (total memory encryption, which is available in many recent CPUs, would make that much more difficult).

          A server could be dedicated to do nothing else than handling the establishment of encrypted connections with clients (similarly to the old-style Kerberos servers) and it could be hardened enough to make impossible any tampering with it, but this would be an additional requirement in comparison with what is needed today, when a server must protect only its own private key for digital signatures.

    3. All you need to share with Visa and Mastercard is a deterministic process (e.g. their app) to generate a random sequence, and a seed, and an offset.

      Take a fast and cryptographically secure hash like BLAKE3, hash the seed, slice 1 byte, use rest as input to next round of hash, repeat.

      Now you have a practically random stream of bytes that can be generated by anyone with the same process and seed. Offset lets you share the seed once and count off offsets for blocks of bytes used for your one time pad. If Visa and Mastercard decide to settle on a fixed transaction size in bytes, then the offset is just a counter or txn number.

      Replies (1)
      1. What you're describing is a symmetric encryption scheme based on the security of BLAKE3. With this, you don't actually need a stateful concept of 'offset'; you can just combine the shared secret with a random long seed each time, which doesn't need to be kept secret or be particularly high-quality randomness (it only needs to not repeat). This is an IV.

        The scheme works, but there's no particular reason to expect BLAKE3 to be more secure than AES, other than because it's slower.

        Replies (1)
        1. Sure a onetime pad is a symmetric scheme. I am not placing any security merit on the performance of this hash, rather the applicability options that that affords. And yes i am certainly relying on the algo being secure and ofc you can substitute something else. The offset approach is just one of a variety of approaches possible. I.e. just smush secret and seqnum and generate pad for one specific exchange. So bottom line if you can share a manageable little secret, then you can have arguably very secure encryption .
          Replies (1)
          1. A one-time pad, by definition, uses a pre-shared key that is truly random, equal in length to the message, and never reused. A "one-time pad" based on deterministically generated random numbers is not a one-time pad at all, but a stream cipher: https://en.wikipedia.org/wiki/Stream_cipher

            In the scenarios discussed where cryptographic problems can be trivially solved, then stream ciphers would fall just like any other type of cipher, since the underlying PRNG could be broken.

            Replies (1)
            1. You're right. Pedantic semantics, imo. If it makes you happy, use the function to emit fixed length blocks of bytes as pads, print them and hand it out. Or use it as a stream cypher if you want. I mean, the whole point is "how to create shared blocks of bytes instead off handing out stickit notes per GP".

              Continue this thread (1 replies) →

    4. Wouldn't they rather store those numbers on the chip on your card?