I’ve always been curious about encryption. If we encrypt a file with AES on any machine, we need the same secret key to read it on another. With RSA, I can encrypt the AES key with a public key and send it along with the file. For me the even harder part always was about understanding how those two algorithms differ and which one I should trust for how long to stay secure. If RSA becomes easier to break, what does that mean for a copy someone saves today? And will it break? Has it been broken?
In my earlier PGP tutorial, each spy had a public key and a private key. I could send a spy a message using the public key, and the spy needs the private key to read it. In my patient records example, Vault encrypts individual fields before Hibernate writes them to PostgreSQL. Instead of repeating any of those scenarios I really want to explain the underlying algorithms more. In particularly in the light of the discussions about recent revelations in mathematical advances with large language models.
In September 2026, Stephen Weis used Anthropic’s Claude to adapt existing factoring software for GPUs. It took ten days and about 30 GPU-years to factor RSA-896, a single 896-bit challenge number. That run did not recover an RSA-2048 private key. Just a much smaller one.
In November, Anthropic reported that a research version of Claude had found a proof separating VP and VNP, two algebraic complexity classes. The related P versus NP question is open. But what does all of this even mean and how does it connect to our applications? Let’s see if we can use an example application to explain it better.
The AES-encrypted file with two algorithms inside
Suppose an application sends a design to a manufacturing partner every Friday. The design needs to stay confidential for ten years. When I inspect the export with OpenSSL, I see two algorithms.
algorithm: rsaesOaep (1.2.840.113549.1.1.7)
algorithm: aes-256-gcm (2.16.840.1.101.3.4.1.46)Read the second line first. AES-GCM encrypts the design with a fresh AES key. The first line says how that key gets to the partner. RSA-OAEP encrypts it with the partner’s public key. The encrypted AES key and the encrypted design travel together in an envelope. To open it, the partner uses their RSA private key to recover the AES key. With that key they can read the design. Anyone who saves the file today and obtains that private key years later can do the same.
The rest of this lab is free for subscribers and subscription is free too! So, just use it as an excuse to sign up if you haven’t.


