r/cryptography • • Apr 01 '26

[Meta] low-effort and anti-slop rules

57 Upvotes

Hello community,

In light of AI and the rise of vibecode, vibeproofs and vibe blogging, the mod team has expanded the "low-effort" rule with more specificity. While an extraordinary tool, AI caused a rise of sloppy content that may be time-consuming to disprove or speculatively break lattice cryptography via theoretical physics or even fully automated karma farming and arguing bots via OpenClaw agents.

Also please feel free to use this post for meta-discussion or suggestions about the sub itself be what you appreciate, what you'd like to see more or less.

The new rules:

Extraordinary claims require extraordinary proofs

Posts making cryptographic claims must include substantiated analysis not just speculation or qualitative arguments or be presented as a challenge to the community. Arguments primarily based on non-cryptographic sources are very likely flawed. Posts claiming to break cryptography via non-mathematical means (e.g. theoretical physics) without rigorous mathematical analysis are prohibited. Authors of cryptographic primitives are encouraged to read NIST submissions as example of cryptographic rigor.

No AI-slop

AI-assisted content must be thoroughly reviewed for slop, hallucinations, crackpot cryptography and errors before posting. AI does pattern matching, if the training data contained errors or misunderstandings, they will propagate.   Low effort AI-generated blogpost or code implementations will be removed.


r/cryptography • • Jan 25 '22 Bless Up Bravo

Information and learning resources for cryptography newcomers

339 Upvotes

Please post any sources that you would like to recommend or disclaimers you'd want stickied and if i said something stupid, point it out please.

Basic information for newcomers

There are two important laws in cryptography:

Anyone can make something they don't break. Doesn't make something good. Heavy peer review is needed.

A cryptographic scheme should assume the secrecy of the algorithm to be broken, because it will get out.

 

Another common advice from cryptographers is Don't roll your own cryptography until you know what you are doing. Don't use what you implement or invented without serious peer review. Implementing is fine, using it is very dangerous due to the many pitfalls you will miss if you are not an expert.

 

Cryptography is mainly mathematics, and as such is not as glamorous as films and others might make it seem to be. It is a vast and extremely interesting field but do not confuse it with the romanticized version of medias. Cryptography is not codes. It's mathematical algorithms and schemes that we analyze.

 

Cryptography is not cryptocurrency. This is tiring to us to have to say it again and again, it's two different things.

 

Resources

  • All the quality resources in the comments
  • The wiki page of the r/crypto subreddit has advice on beginning to learn cryptography. Their sidebar has more material to look at.
  • github.com/pFarb: A list of cryptographic papers, articles, tutorials, and how-tos - seems quite complete
  • github.com/sobolevn: A list of cryptographic resources and links -seems quite complete
  • u/dalbuschat 's comment down in the comment section has plenty of recommendations
  • this introduction to ZKP from COSIC, a widely renowned laboratory in cryptography
  • The "Springer encyclopedia of cryptography and security" is quite useful, it's a plentiful encyclopedia. Buy it legally please. Do not find for free on Russian sites.
  • CrypTool 1, 2, JavaCrypTool and CrypTool-Online: this one i did not look how it was

*This blog post details how to read a cryptography paper, but the whole blog is packed with information.

 

Overview of the field

It's just an overview, don't take it as a basis to learn anything, to be honest the two github links from u/treifi seem to do the same but much better so go there instead. But give that one a read i think it might be cool to have an overview of the field as beginners. Cryptography is a vast field. But i'll throw some of what i consider to be important and (more than anything) remember at the moment.

 

A general course of cryptography to present the basics such as historical cryptography, caesar cipher and their cryptanalysis, the enigma machine, stream ciphers, symmetric vs public key cryptography, block ciphers, signatures, hashes, bit security and how it relates to kerckhoff's law, provable security, threat models, Attack models...

Those topics are vital to have the basic understanding of cryptography and as such i would advise to go for courses of universities and sources from laboratories or recognized entities. A lot of persons online claim to know things on cryptography while being absolutely clueless, and a beginner cannot make the difference, so go for material of serious background. I would personally advise mixing English sources and your native language's courses (not sources this time).

With those building blocks one can then go and check how some broader schemes are made, like electronic voting or message applications communications or the very hype blockchain construction, or ZKP or hybrid encryption or...

 

Those were general ideas and can be learnt without much actual mathematical background. But Cryptography above is a sub-field of mathematics, and as such they cannot be avoided. Here are some maths used in cryptography:

  • Finite field theory is very important. Without it you cannot understand how and why RSA works, and it's one of the simplest (public key) schemes out there so failing at understanding it will make the rest seem much hard.
  • Probability. Having a good grasp of it, with at least understanding the birthday paradox is vital.
  • Basic understanding of polynomials.

With this mathematical knowledge you'll be able to look at:

  • Important algorithms like baby step giant step.
  • Shamir secret sharing scheme
  • Multiparty computation
  • Secure computation
  • The actual working gears of previous primitives such as RSA or DES or Merkle–Damgård constructions or many other primitives really.

 

Another must-understand is AES. It requires some mathematical knowledge on the three fields mentioned above. I advise that one should not just see it as a following of shiftrows and mindless operations but ask themselves why it works like that, why are there things called S boxes, what is a SPN and how it relates to AES. Also, hey, they say this particular operation is the equivalent of a certain operation on a binary field, what does it mean, why is it that way...? all that. This is a topic in itself. AES is enormously studied and as such has quite some papers on it.

For example "Peigen – a Platform for Evaluation, Implementation, and Generation of S-boxes" has a good overviews of attacks that S-boxes (perhaps The most important building block of Substitution Permutation Network) protect against. You should notice it is a plentiful paper even just on the presentation of the attacks, it should give a rough idea of much different levels of work/understanding there is to a primitive. I hope it also gives an idea of the number of pitfalls in implementation and creation of ciphers and gives you trust in Schneier's law.

 

Now, there are slightly more advanced cryptography topics:

  • Elliptic curves
  • Double ratchets
  • Lattices and post quantum cryptography in general
  • Side channel attacks (requires non-basic statistical understanding)

For those topics you'll be required to learn about:

  • Polynomials on finite fields more in depth
  • Lattices (duh)
  • Elliptic curve (duh again)

At that level of math you should also be able to dive into fully homomorphic encryption, which is a quite interesting topic.

 

If one wish to become a semi professional cryptographer, aka being involved in the field actively, learning programming languages is quite useful. Low level programming such as C, C++, java, python and so on. Network security is useful too and makes a cryptographer more easily employable. If you want to become more professional, i invite you to look for actual degrees of course.

Something that helps one learn is to, for every topic as soon as they do not understand a word, go back to the prerequisite definitions until they understand it and build up knowledge like that.

I put many technical terms/names of subjects to give starting points. But a general course with at least what i mentioned is really the first step. Most probably, some important topics were forgotten so don't stop to what is mentioned here, dig further.

There are more advanced topics still that i did not mention but they should come naturally to someone who gets that far. (such as isogenies and multivariate polynomial schemes or anything quantum based which requires a good command of algebra)


r/cryptography • • 4m ago

Can AI Crack Bitcoin?

0 Upvotes

There is a question that can make even the most confident Bitcoin holders uncomfortable: what happens when artificial intelligence starts discovering weaknesses in the mathematics protecting our digital money?

On November 30, Anthropic published four research papers on lattice-based cryptography, with results discovered using an unreleased Claude model. The announcement quickly attracted attention because some of the mathematical problems involved are also used in major post-quantum security standards.

But does this mean Bitcoin could be hacked?

Not according to the evidence available on December 1, 2026. The discovery is significant, but the distinction between a theoretical breakthrough and a practical attack is crucial. And when it comes to Bitcoin, there is an even more important detail.


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

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

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 • • 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

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 • • 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

Top Cryptographers Form Group to Handle Encryption Breaks

Thumbnail reddit.com
18 Upvotes

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 • • 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 • • 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 • • 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

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 • • 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 • • 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

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 • • 7d ago

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

0 Upvotes