r/cryptography • • 1d ago

AES algorithm

0 Upvotes

Hello,

I am trying to dig deeper about AES algorithm and how it replaced DES. The keys applicable is 256,128, etc some available keys.

How it works from inside.
Is the key is the most important thing to secure.
How diffusion and confusion are implemented in DES.
What are attack vectors for DES and how usually the key is stored ?

Please advise


r/cryptography • • 1d ago

Maybe we should speed up PQC

0 Upvotes

Perhaps we should accelerate the transition to post-quantum cryptography. Just saying.

Given the recent AI-driven progress on the Generalized Riemann Hypothesis, I think we should really, really accelerate the adoption of post-quantum cryptography.

Not because GRH itself implies a cryptographic vulnerability, but because AI might significantly accelerate mathematical and technological discoveries.

Who knows what comes next? A more efficient integer factorization algorithm? A breakthrough in quantum error correction? An unexpected shortcut to scaling quantum computers?

Perhaps our migration timelines should no longer assume historical rates of scientific progress.

Not a warning or a prediction. Just leaving this here so that, if something happens, I can come back and say: "I told you so." ;)


r/cryptography • • 1d ago

Four papers on lattices: a Lean 4 formalization

Thumbnail github.com
9 Upvotes
  • 01-quasi-polynomial-quantum-algorithms.pdf
  • 02-search-svp-to-sis-and-lwe.pdf
  • 03-converse-of-the-dual-attack.pdf
  • 04-pke-from-gapsvp-classical.pdf

TL;DR- The algorithm attacking ML-KEM and ML-DSA is galactic (requires infeasibly large constants or exponents), meaning that it cannot be run on practical hardware in practical time. It must be significantly improved before practicality can be considered.


r/cryptography • • 1d ago

Diffie-Hellman Small Subgroup Confinement

Thumbnail antonkueltz.com
4 Upvotes

I recently spent a little time revisiting some of my implementations for the cryptopals set 8 challenges and thought they could make for decent write ups about the underlying weaknesses that each challenge exploits. The idea is to discuss the theory but to also build up to a fully functional implementation. The first one more or less boils down to why we use safe primes for finite field DH and what can happen if we roll our own DH params (specifically choosing a weak value for p). Let me know if you find the read enjoyable and would be interested in more along these lines (or with a different target language than python).

If this is not the right subreddit for this kind of material, please don't hesitate to point me towards the right direction. Thanks for reading!


r/cryptography • • 1d ago

Initial Assessment of Anthropic’s Findings on Lattice Cryptography

Thumbnail cirg.org
170 Upvotes

By the Cryptography Incident Review Group (cirg.org)

November 30, 2026

On November 16th, Anthropic shared with several of us a collection of mathematical results about lattice cryptography, a leading category of “post-quantum” cryptography (PQC) — the term for cryptosystems meant to be secure against attacks by future quantum computers. We welcome cryptographic research of this kind by frontier AI labs, with responsible disclosure of the results.

Anthropic’s findings relate to two flavors of lattices: structured ones and unstructured ones. A family of structured lattices called module lattices forms the basis of several NIST PQC standards. Unstructured lattices are the foundation for other cryptosystems that are less efficient, but may offer fewer avenues for attack.

Anthropic’s most prominent claim is a quantum, quasi-polynomial-time algorithm for attacking certain module-lattice problems, including some versions of Ring- and Module-LWE.1 This is discussed below.

By contrast, Anthropic said it found no improvement in classical (non-quantum) attacks on any mainstream lattice cryptosystems of either flavor, or in quantum attacks on the unstructured ones. Moreover, other findings in its report strengthen the theoretical foundation for cryptography based on unstructured lattices. We view this as meaningful evidence in support of the post-quantum security of mainstream unstructured-lattice systems.

NIST structured-lattice PQC standards.

At present, when applied to NIST’s structured-lattice standards (currently ML-KEM and ML-DSA), Anthropic’s attack algorithm requires vastly more computation than the best previously known attacks. Those earlier attacks are already far beyond practical reach, and the scale of the new attack is galactic.2 Moreover, the attack requires large-scale quantum computation, which is far more costly to carry out than classical computation of comparable scale.

The significance of the new attack is asymptotic: it says that if these standards were scaled up in a certain way, their quantum security would increase much more slowly than previously believed.3 This asymptotic improvement comes from exploiting the kind of algebraic structure used in these standards. It is reasonable to expect that the attack will be improved in the near future. A key question is whether such improvements will actually reduce the cost of breaking the NIST standards or other practical structured-lattice systems.

Recommendations.

We recommend continuing the transition to post-quantum cryptography. At present, the reported attack falls far short of compromising the current NIST standards, and delaying the transition would prolong reliance on existing systems that can be broken with far fewer quantum resources than this new attack requires. Researchers should continue to assess whether these or other techniques could threaten the standards’ intended security.

We recommend that those adopting the current NIST standards choose the highest security level each application can support. We also encourage hybrids that combine schemes based on different mathematical foundations, and we recommend designing agile systems so that individual schemes can be replaced quickly if the need arises.

To provide a wider choice of alternatives, we strongly recommend that NIST and other bodies prioritize standardizing additional public-key cryptosystems based on diverse designs, even at some cost in efficiency.

Finally, we urge frontier AI labs to work with the cryptographic community to assess the systems we rely on today and those we may rely on tomorrow, and to share their findings — including what they tried, which systems resisted attack, and how much effort they devoted to each. This collaboration should be part of a broader investment in cryptanalysis and in the design of more resilient cryptographic systems.

  1. Specifically (and ignoring polynomial factors in the input length), the asymptotic running time is npoly(k log(n)) for module lattices of rank k over power-of-two cyclotomic rings of degree n; this is nO(log n) for fixed rank k. Anthropic’s result is separate from recent classical, slightly subexponential-time attacks on structured lattices using OpenAI’s refutation of the Exponential Time Hypothesis. ↑
  2. We used AI models to help optimize the current attack and estimate its cost. To give a sense of scale, even (say) 21000 quantum operations would be far below its cost for the smallest parameter sets (ML-KEM-512 and ML-DSA-44), even under assumptions favorable to the attacker. ↑
  3. More precisely, the asymptotic speedup applies as the degree n of each structured component grows. By contrast, ML-KEM and ML-DSA reach higher security levels by increasing the number of components (the rank k) while keeping n=256 fixed. ↑

r/cryptography • • 1d ago

Anthropic plans announcement around the security of post-quantum encryption, sources say

Thumbnail reuters.com
73 Upvotes

r/cryptography • • 1d ago

[Academic] [Demographics: University Students, Adults, Computer Science & Non-CS Backgrounds] Understanding Awareness and Misconceptions About Post-Quantum Cryptography (5 minutes)

0 Upvotes

Hello everyone!

We are undergraduate Computer Science students at FAST-NUCES, conducting research on awareness and misconceptions about Post-Quantum Cryptography.

We would love to understand how people from different educational and academic backgrounds perceive the potential impact of quantum computers on digital security.

Survey details:

  • Takes approximately 5 minutes.
  • Completely anonymous.
  • No prior knowledge required.
  • Open to university students and people from different academic backgrounds.

🔗 Survey link:
https://docs.google.com/forms/d/e/1FAIpQLSfi-oYHiIdEUJHk6AxIFz6yiPXV5xzd9a3_2Dltt8wqi6O7qQ/viewform

Your participation would be greatly appreciated. Thank you for supporting our research!


r/cryptography • • 2d ago

Could AI help find a mathematical shortcut that breaks RSA or elliptic curves before quantum computers are ready

1 Upvotes

I'm new to cryptography, so sorry if this is basic.

Everyone talks about quantum computers breaking RSA and ECC one day. I'm wondering if AI could get there first, not by brute force, but by helping someone find a better classical algorithm.

What I understand so far:

- Brute-forcing AES-256 is impossible, AI or not.

- RSA and ECC are considered safe because factoring and discrete logs are believed to be hard, but that's not proven.

- SIKE was broken in 2022 with classical math on a normal PC, so "safe until quantum" isn't guaranteed.

My questions:

  1. Is it realistic that AI could help find a faster classical attack on RSA or ECC, or is there a good reason that's very unlikely?
  2. Are the new post-quantum algorithms (ML-KEM, ML-DSA) more or less at risk of that kind of break, since they're newer?
  3. Is AI already being used in cryptanalysis research in a meaningful way?

r/cryptography • • 2d ago

Do you study Cryptography for fun as I find researching is impossible for outsiders?

1 Upvotes

r/cryptography • • 2d ago

Aaronson clarifies his statements regarding upcoming theoretical 'breakthroughs' and the rumored polytime factoring algorithm

85 Upvotes

There have been many posts about a rumored polytime factoring algorithm. Several seem to trace back to Scott Aaronson's November 24 comment:

I've now heard many, many rumors that one or both labs are sitting on Factoring in P. I don't know how much to credit this.

But I'm getting the sense that many, many on this sub missed his November 26 clarification:

While I didn't say anything false, a rumor is a rumor is a rumor, and the parts that I'm "virtually certain" about fall well short of Factoring in P.


EDIT. Aaronson has since posted on his blog regarding Anthropic's release on November 30.

For those who don't already know, the results concern lattice-based post-quantum cryptography, not classical factoring. Anthropic released four papers headlined by a theoretical, "galactic" quasi-polynomial-time quantum algorithm for certain structured lattice problems (integral and small-rank module lattices over power-of-two cyclotomic rings, the family underlying NIST's ML-KEM and ML-DSA).

Critically, there are no classical attack improvements, current NIST parameter sets are not practically threatened (at deployed sizes the algorithm requires vastly more computation than already-impractical attacks and still needs a large-scale quantum computer). Note as well that the three companion papers strengthen the theoretical foundations of unstructured lattices.

I strongly urge everyone to read the refreshingly sober announcement from CIRG: Initial Assessment of Anthropic's Findings on Lattice Cryptography. There's no reason to do Anthropic's marketing for them, for free, and at the expense of our own sanity.


r/cryptography • • 2d ago

Worried that it’s genuinely over for our encryption now

0 Upvotes

I’m imagining a future where ai companies are gate keepers to the latest maths knowledge, even if they’re kind enough to lend us their breakthroughs, we’ll never be able to trust them

It can’t go on like this, I’m not a maths expert but I do use cryptography, it’s so daunting to think about

What’s your take? Is this plausible or am I overreacting?


r/cryptography • • 2d ago

Top Cryptographers Form Group to Handle Encryption Breaks

Thumbnail reddit.com
18 Upvotes

r/cryptography • • 2d ago

Upcoming statement from the Cryptography Incident Review Group

Thumbnail cirg.org
197 Upvotes

The group advises on how to disclose a break, communicate with those affected, and plan for cryptographic resilience.

They added this link for a forthcoming statement that has not been published yet. Any idea of what this is about?


r/cryptography • • 4d ago

If AI ever solved "Factoring in P" (breaking RSA), how worried should we actually be about Bitcoin's cryptography?

0 Upvotes

There are rumors circulating right now (even mentioned by computer scientist Scott Aaronson) that frontier AI labs might be close to solving integer factorization in polynomial time (P). 
If that ever turned out to be true, it would immediately break RSA encryption across the internet. Since Bitcoin relies on Elliptic Curve Cryptography (secp256k1) and SHA-256 rather than RSA, the protocol wouldn't be broken directly on day one. 
However, a mathematical breakthrough of that scale could easily spill over into solving the Elliptic Curve Discrete Logarithm Problem (ECDLP), not to mention the chaos it would cause for exchanges and internet infrastructure relying on RSA.
How do you see this playing out, and is anyone actively working on quantum-resistant or post-RSA signature proposals (BIPs) for Bitcoin right now?


r/cryptography • • 4d ago

How is ElGamal used in practise?

6 Upvotes

The ElGamal PKE is not secure under chosen ciphertext attacks, since the discrete log problem is random self-reducible. So how is it (and other discrete log based primitives) used in practice? I've been reading about this Fujisaki-Okamoto construction, that transforms a PKE into a KEM. Then we can use the encapsulated key to communicate via symmetric encryption.

Is this the way ElGamal is being implemented in every day life?


r/cryptography • • 4d ago

Would anything that breaks encryption (whether AI or quantum) break 2FA authenticator security? (among other things)

6 Upvotes

Maybe that's a dumb question, with all the panic going about regarding encryption-breaking I'm just trying to get a good idea of what would and wouldn't be affected. Is this purely an internet thing? Does it apply to the computer's own systems so the very software/OS of the computer is broken if encryption is? Etc?


r/cryptography • • 6d ago

Scott aaronson says there are credible rumors of RSA being toast because of ai labs latest batch of outputs

111 Upvotes

A number of others in the socials that were first to call specific things from the labs are also saying it. Solving in P time is on the table now


r/cryptography • • 6d ago

Quick Glance Valid Sha256

1 Upvotes

So I'm guessing that because SHA256 output is that many bits, if you get an ASCII output like this:

ed614564e138c42f78f0a0f42f344a59210327c6820c6af483b7e6aa617eeff5

It's still valid because each character is 1 byte, which is 8 bits so you get 32 characters - but I'm getting more than that many characters so is Sha256 calc just wrong?


r/cryptography • • 6d ago

Cracking a 1024-bit DKIM key now costs about $30M

118 Upvotes

In March 2026 we estimated factoring a 1024-bit RSA key at $40M to $120M and one to two years. This September that record fell twice in 16 days. First Eric Lu at Cognition factored RSA-260 (862 bits) in 15.6 days for about $400,000. Then Stephen Weis at Anthropic factored RSA-896 (896 bits) in 10 days with about 30 GPU-years.

It is an extrapolation, but complexity formula gives 900 to 1,050 GPU-years for 1024 bits. That is about $30M at $3.50 per GPU-hour, and five to six months on 2,048 GPUs.

Is anyone planning to stop accepting 1024-bit RSA signatures as a DKIM pass? From our side we already notifying all the customers about weak DKIM keys automatically.

Full calculation and sources: https://dmarcdkim.com/blog/cracking-a-1024-bit-dkim-key


r/cryptography • • 7d ago

Can a quantum-resistant implementation of the Diffie-Hellmann-protocol exist, or is its vulnerability to Shor's intrinsic?

18 Upvotes

The underlying idea of Diffie-Hellmann is that there's a function (f : K x K -> K), operating on a finite field K such that f(A, f(B, G)) = f(B, f(A, G)). And where there is no trivial inverse (g : K x K -> K) such that g(Y, f(X, Y)) = X.

These requirements are quite minimal (relatively speaking), such that a transition from prime exponentiation to elliptic curves could be done without major issues.

While i know both DH and ECDH to be vulnerable to Shor's algorithm, i ask weather that's intrinsic to Diffie-Hellmann, or it's just the vulnerability of Prime exponentiation and Elliptic curves to Shor's that's making the underlying protocol vulnerable?


r/cryptography • • 7d ago

When will we see breakthroughs in cryptography from AI like we have been seeing in math physics and biology?

0 Upvotes

r/cryptography • • 7d ago

Is it a worth pathway to go?

7 Upvotes

As an 11th-grade student, I was searching for future opportunities and suddenly encountered quantitative researcher (which is close to impossible for me to work in, as I don't want to work 14 hours a day) and cryptography . So, I chose cryptography between those because it looks interesting, but I don't really know what they do and what requirements they need, except advanced math and a little bit of coding. So, I thought it would be better if I asked someone with knowledge, and here I am. So, what do these guys do, and should I keep studying for it?


r/cryptography • • 9d ago

How can I learn the math and process to make my own ciphers?

9 Upvotes

I want to make my own encryption algorithms in python but I am struggling to find good written(not video) resources. I want to actually understand the math used and what the process is to go from the plain text to an encrypted string, and then decrypting it with a key. I want to make these algorithms in python without libraries that are specifically for encryption. I'll probably just use python and If I need I'll add NumPY.


r/cryptography • • 9d ago

wolfGuard - FIPS 140-3 Enable WireGuard

Thumbnail wolfssl.com
9 Upvotes

Stumbled on this troubleshooting a Wireguard connection at work. Breakdown of the cryptographic primitives is kind of boring:

- Curve25519 → SECP256R1

- XChaCHa20-Poly1305 → AES-256-GCM

- Blake2s-HMAC → SHA-256-HMAC

- SipHash → SHA-256

- ChaCha20-DRBG → SHA-256 Hash-DRBG

Obviously you would only use this if FIPS compliance is mandated. I'd be interested to see some benchmarks between the two though.


r/cryptography • • 10d ago

The Riemann hypothesis is that there is a function for primes, and cryptography is based on there being no function for primes. Please tell me what I’m missing

0 Upvotes