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 (35)

  1. More-or-less separately from this particular incident, rather in preparation for the months/years to come: what's the worst case scenario if it turns out, say, that we end up in Impagliazzo's Pessiland world? [1] Does it just become impossible to do anything security-relevant over the internet? (money, secrets, identification as a reputable entity, anything) How did people authenticate in the times before RSA? How much chaos would this cause for civilisation? How much power would it give to the first codebreaker?

    [1] See https://ldpreload.com/p/impagliazzo-five-worlds.pdf. Pessiland is the hypothetical world where P ≠ NP, so we get no magical solutions to optimisation problems, but at the same time cryptography turns out to be breakable. I chose it just to focus on the cryptography aspect without everything else the far stronger claim "P = NP" would cause.

    Replies (5)
    1. Before RSA? That was the days of signed papers and laminated ID cards.
    2. 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."

              Continue this thread (2 replies) →

          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.

              Continue this thread (1 replies) →

      4. Wouldn't they rather store those numbers on the chip on your card?
    3. For now, there exists no hint whatsoever that classical cryptography is in any danger from mathematical progresses.

      The only things that are fragile are the public-key algorithms needed for digital signatures and for secret key exchanges.

      Digital signatures do not have a classic equivalent, and also the half-authenticated communications between an authenticated server and an unknown client, like in most of the Internet traffic, do not have a classic equivalent.

      Otherwise the communication between parties who know each other can be done using pre-shared secret keys instead of Diffie-Hellman key exchanges. The encryption of your own documents is also not affected in any way by the non-existence of public-key cryptography.

      So anything that Anthropic could discover might in the worst case disrupt on-line commerce if standards would have to be changed, but it would not affect spies at all or VPNs used within an organization or the encryption of the SSDs of a laptop against thieves.

      Still, it is very unlikely that Anthropic could have discovered something that would affect all public-key algorithms. If they have broken some of the new post-quantum algorithms that are now in the process of being deployed everywhere, if the deployment was done in hybrid manner, as argued by many people against NSA, the old algorithms are still valid until someone will make a working quantum computer, which would give time to fix the new standard.

      Replies (3)
      1. > disrupt on-line commerce

        I mean, that would be absolutely covid level society breakdown, imo.

      2. >> Digital signatures do not have a classic equivalent

        What do you mean? ECC DSA isn’t a classic?

        Replies (1)
        1. By classic, I mean secret-key cryptography, as it existed before the Diffie-Hellman-Merkle publications from the seventies, from which public-key cryptography has developed.

          There are 2 important things that can be done only with public-key algorithms, but not with secret-key algorithms, which are digital signatures and half-authenticated communication connections, where only the server is authenticated.

          Other things that can be done with public-key algorithms are optional, they might be desirable in certain applications, but nothing important is lost if they are not possible.

          But digital signatures and half-authenticated HTTPS connections are essential for modern Internet traffic and on-line shopping.

          Other things, like managing your servers with SSH, enterprise VPNs or on-line banking, all of which are communications between parties who already know each other, could be implemented strictly only with secret-key algorithms, with minimal differences from how they are done today.

          Replies (1)
          1. I’ve never heard of PKI dismissed from the classical group. So then they should switch to xmss/lms/sphyncs? That uses only classical hashes. And Grover’s attack only reduces that quadratically.
      3. IDK, but to me disrupting online commerce seems far, far, far more impactful to the general society than enabling spying or disrupting pre-configured internal VPNs. Like not even in the same ballpark of importance, the latter is a niche activity and the former is a foundation of modern society and economics.

        Digital signatures and secret key exchanges without being able to pre-exchange keys (i.e. for online commerce) is the most practically important part of cryptography.

    4. Claude Shannon – the human Claude – proved in the 50s that one time pads are secret. So we do not live in Pessiland; at worse we live in Minicrypt. We may live in Cryptomania if post-quantum public key crypto holds, although I wouldn’t be confident about it (the title of the workshop Ant presented at was, ominously, called the Lattice Frontier Workshop, and lattices are the basis of current post-quantum public key cryptography).

      One-time pad distribution at scale would probably be great for Apple/Google/Microsoft, since it’d lock you into their platforms if they’re the trusted intermediaries between your devices and everything else.

      (It would also mean NSA spycraft is inescapable, since they’d have no problem making sure your one-time, centrally-distributed codes are uh, two-time.)

    5. And also what if P != NP but closed timelike curves exist and can be used in computers? Then it wouldn't really matter.