r/cryptography • • Apr 01 '26

[Meta] low-effort and anti-slop rules

59 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

340 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 • • 20h ago

Google Chrome to block ECDSA P-256 CA certs amid cryptography warnings starting in March 2027

Thumbnail bleepingcomputer.com
117 Upvotes

r/cryptography • • 18h ago

Is elliptic curve crypto broken?

Thumbnail neilmadden.blog
60 Upvotes

r/cryptography • • 36m ago

Microsoft's latest statement on browser post-quantum support

2 Upvotes

r/cryptography • • 37m ago

A Riddle Wrapped in an Enigma (Koblitz/Menezes 2015)

Thumbnail eprint.iacr.org
2 Upvotes

r/cryptography • • 1d ago

Bruce Schneier says a reliable source told him ECC P-256 was broken

Thumbnail runtimewire.com
375 Upvotes

r/cryptography • • 1h ago

SHA2

0 Upvotes

Im looking at the following algorithm (in comments below) which shows a SHA2 based algorithm. Why does the message become 1120 bits at the start of the algorithm, from the maths I’m guessing we pad each m block and then pad the last one twice. If this is right why do we do this instead of just padding the last one once? And if not what is going on? Any help is much appreciated! And any more info would be great because I’m out of my depth.


r/cryptography • • 6h ago

Anyone proficient in Side Channel analysis and PQC can you please share your experience and learning material s

2 Upvotes

r/cryptography • • 1d ago

Actual cryptographic findings by a new Chinese Model

Thumbnail github.com
103 Upvotes

As a nice break from the stream of unsubstantiated rumors and hearsay about unreleased models' cryptographic capabilities, MiniMax has just released a technical report on their new model they dub M4.

From section 6.6.2 (page 60 in the linked pdf):

Cryptanalysis is a rigorous test of long-horizon reasoning, mathematics, and code execution: a theoretical insight only matters if it translates into an end-to-end exploit that recovers a key, forges a ciphertext, or produces a collision. We evaluated M43 across three cryptanalytic settings:
• Peer-reviewed schemes: M4 uncovered a structural flaw in the CAESAR winner COLM0 (Andreeva et al., 2024), enabling a nonce-respecting forgery in only two encryption queries. On the post-quantum signature SBCVOLE (Huth and Joux, 2026), it exploited a compression weakness to extract the full secret key from a single signature in 0.06 s across all six parameter sets. For the NSA block cipher ARADI (Greene et al., 2024), the model leveraged structure in the public constants to extend practical single-core key recovery from 5 to 8 rounds (2.4–16.0 s) and theoretical integral attacks to 9–12 rounds.
• Past NIST candidates: The model produced the first practical collisions on SHA-3 candidates Waterfall (Hattersley, 2008) (0.045 s) and full-round Blender-256 (Bradbury, 2008) (0.73 s). Turning to post-quantum KEMs, M4 first patched memory-corruption bugs in the LOCKER reference implementation (Aragon et al., 2017) to run its experiments, then compressed the attack’s linear system from 42 PB to 58 MB, breaking all nine parameter sets in under 2 s. It similarly recovered an equivalent secret key for ROLLO-I-128 (Aguilar Melchor et al., 2019a) in 5.97 s, and autonomously discovered and exploited over a dozen previously unknown vulnerabilities across ten other candidates (Aguilar Melchor et al., 2019b; Andreeva et al., 2019; Baldi et al., 2017; Dobraunig et al., 2019; Iwata et al., 2019; Lu et al., 2019; Penazzi and Montes, 2019; Plantard et al., 2017; Yamada et al., 2017; Zhao et al., 2017).
• Cryptographic challenges and open problems: On the TII McEliece challenges (Technology Innovation Institute, 2023), M4 reduced the underlying algebraic system by up to 6.59×, solving 94 Track-2 instances (55 previously unbroken) at 6,180×–43,400× the speed of prior records (Bardet et al., 2026; Saarinen, 2026; Weis, 2026). On HAWK (Bos et al., 2025; Ducas et al., 2022), its algorithmic optimizations lowered attack complexity by 9.3–23.8 bits across all parameter sets and recovered a challenge key in 30.9 min on a single core (690× speedup). Beyond cryptanalysis, M4 disproved two of Tokareva’s conjectures on Boolean bent functions (Tokareva, 2014, 2016), formalizing the counterexamples in Lean 4 (Feng et al., 2026).

As a whole, this is exactly what I've expecting from new models: important contributions, but nothing that's going to end the world. It is still an impressive body of work as a whole, and the rate of progress means that, well, I wouldn't want to be a professional mathematician right now.


r/cryptography • • 16h ago

Looking for advice regarding PhD/Grad applications for cryptography

1 Upvotes

I was hoping to get some advice from this subreddit regarding my prospects in applying for PhD/Grad school with a focus in cryptography. I've already spoken to my professors, but I want to get more perspective. I really enjoy linear algebra, post-quantum cryptography and algorithms, and would absolutely love to do research in cryptography in the future.

For context:
- I am a third-year at a California State University, and will be graduating with a B.S in computer science and a minor in mathematics
- Relevant courses have taken/taking: Cryptography, linear algebra, basic discrete math (truth tables, set/graph theory, etc), algorithms, web security
- Relevant courses I intend on taking: Computational theory, blockchain technologies, abstract algebra
- Currently doing cryptography research under my cryptology professor, specifically involving post quantum encryption. At the very least can probably get a preprint done before I start applying.
- I can get two strong LORs, from my cryptology professor and my algorithms professor
- GPA is around 3.5, I had sloppy grades early on, as I really didn't take an interest in CS until I realized I really enjoyed algorithms and cryptography. However my grades in relevant classes are decent, with mostly As and a few Bs.
- Misc info that might be relevant: CompTIA Sec+, I have some small projects I did for fun/class, where I tried to make my own cipher using a Feistel structure or substitution-permutation, I'm hoping to do a cryptography-based capstone project to fulfill my degree's capstone requirement

Since I'm coming from a non-R1 CSU with a ~3.5 GPA and discovered my interest in this field relatively late, I'd love some advice on:

  1. Do I even have a chance to get into any programs/grad school?
  2. Direct Ph.D admission? Dual-track? M.S first then apply for Ph.D? Which process would you say is better?
  3. What should I prioritize to improve my competitiveness?
  4. When it comes to looking at schools, what should I prioritize? What do I look for? What are some good programs? Am I trying to shoot too high? I've looked at the following programs: UCI, USC, Texas A&M, Georgia Tech
  5. If you have a M.S or Ph.D in this field/actively conducting research, what was your experience like? What did you do? Anything that you did that you wish you did differently?

Thank you guys so much! Any advice (or a reality check) is appreciated!


r/cryptography • • 18h ago

What is x0 in sponge or SHA?

0 Upvotes

I’ve been researching into each step of the sponge construction and keccak function at university and can’t find a simple explanation for what the x0 is. In the diagram it is written as x0 <- 0 and then x1 goes on to be the first block of our data. What does the arrow and the 0 represent? Any help is much appreciated especially because I’m very new to cryptography!


r/cryptography • • 11h ago

How can I become good at cryptography.

0 Upvotes

I really like cryptography, and the networking stuff (theoretical only) but i want to become way good at these things so any resource that you think is easy to read and understand so that I can learn and may be invent something 🫪.


r/cryptography • • 1d ago

Real-world PQC migration pain points beyond edge TLS: fixed buffers, fallback bugs, and code refactoring?

4 Upvotes

Enabling X25519MLKEM768 at the reverse proxy/CDN is straightforward now, but migrating application-level signing and encryption (ML-DSA, envelope encryption, internal mTLS) looks much messier.

For engineers who have actually migrated production codebases off RSA/ECDSA:

What broke first when key and signature sizes jumped 10x–40x (DB schemas, framing/MTU limits, serialization formats, HSMs)?

Are you seeing devs accidentally leave silent classical fallback paths or broken error handling when refactoring with AI coding assistants?

What ended up taking more time:

finding where crypto lives (CBOM), waiting on vendors, or safely rewriting and verifying the code?


r/cryptography • • 19h ago

Exploring ECC Geometric Symmetries Because Bruce Schneier

0 Upvotes

Bruce Schneier recently made a statement that a reliable source informed him that ECC P-256 had been broken, I thought it would be an interesting time to share some of my own explorations into the geometric and mathematical structure of ECC.

I created visualizations of elliptic curves over smaller finite fields to demonstrate that their underlying structure isn’t nearly as random or chaotic as it seems.

Reflection symmetry around the midpoint of the y coordinate range.

Six point families on suitable curves, where each point has five mathematically related counterparts that can be derived from any one of them.

Relationships between private scalars, allowing the other five to be calculated when one is already known.

Geometric relationships between points sharing x or y coordinates.

The ability to leverage these symmetries to eliminate redundant exploration of the search space.

Additional geometric patterns that become apparent when examining smaller finite field grids.

Although the accompanying visualizations use smaller curves to make these relationships easier to observe, the six-point symmetry also applies to secp256k1, the elliptic curve used by Bitcoin and Ethereum.

ECC Grid Images

The images will remain available for a week for anyone interested in examining them.

I’m aware that several of these symmetries are already established in cryptographic literature. What interests me is how these relationships interact geometrically and whether there are further opportunities to exploit their collective structure beyond existing optimizations.

I’m aware that P-256 and secp256k1 are different curves, and that Schneier’s statement does not establish a practical attack or imply that secp256k1 has been broken.

I think the recent developments make further research of the underlying mathematical structure pretty relevant.

There’s considerably more to my research, but I’m not here to teach people how to hack. My intention is to demonstrate that the underlying structure of this supposedly impenetrable cryptography is far more organized and mathematically navigable than many people might realize.

I’m interested in hearing what others think about approaching the elliptic curve logarithm problem from a geometric perspective rather than treating the scalar space primarily as an unstructured search problem.


r/cryptography • • 1d ago

Rumors Will Metastasize

Thumbnail soatok.blog
20 Upvotes

r/cryptography • • 1d ago

Cloudflare will be fully post-quantum in 2027

Thumbnail blog.cloudflare.com
87 Upvotes

r/cryptography • • 1d ago

Is P-256 classically broken?

44 Upvotes

The NSA advisory seems to single out P-256 (including ed25519 and friends) to move off ASAP.

Recommendation for TLS: use hybrid X25519MLKEM768, which is already the default for many modern browsers and servers with P-384 as fallback?

Recommendation for auth: use P-384 for JWKS? Take down any public JWKS endpoints ASAP?

Recommendation for ssh: use P-384? e.g. ssh-keygen -t ecdsa -b 384

For compatibility with pre 10.6 openssh servers with PQC kex algos in different names, put the following at the end of your ~/.ssh/config

Host *
    KexAlgorithms mlkem768x25519-sha256,[email protected],sntrup761x25519-sha512,ecdh-sha2-nistp521,ecdh-sha2-nistp384

Update: Chrome to block P-256 CA certs by next march! This is probably as official as you'd get? cf. https://blog.google/security/keeping-https-connections-safe-in-chrome/


r/cryptography • • 1d ago

Harvest Now Decrypt Later Attack

4 Upvotes

Seems like Quantum Safe Encryption has become a the topic of the week.

However, for many years, data encrypted with TLS can be harvested today and potentially decrypted in the future if Quantum computers ever get popular.

Could one argue that the decryption of data and its access is just a matter of time?

I wonder if there’s a properly way to transmit data today that may not be decrypted later at all…


r/cryptography • • 16h ago

Would it be possible to encrypt something using color?

0 Upvotes

So standard RGB has about 2^24 different possible combinations of colors per pixel on a screen. Assuming someone has a small screen, like 255x144p, that’s about 5.18x10^265291 combinations. That should be enough combinations to keep something secure for atleast a day hopefully, idk. But could a machine or whatever be created to encrypt like this?


r/cryptography • • 2d ago

Anybody still now what the hell they're doing?

100 Upvotes

Elon Musk: omg RSA will be broken in like 2 days and I know it now already cuz I'm so smart btw MAGA

Anthropic: look at the neat galactic algorithm we found. might break some NIST-certified PQC algorithms. all you need is a fault tolerant quantum computer a quadrugobillion times larger than the universe. check below for amazon link (sry we told you after black friday)

Everybody: so what about RSA?

Anthropic:

NSA: OH MY GOD YOU GUYS MOVE TO PQC IMMEDIATELY. fuck qkd tho


r/cryptography • • 1d ago

Is AI good at security reviews?

0 Upvotes

A few friends and I are working on a small side project: a decentralized, local-first protocol for shared expenses and group messaging.

Basically, each user has an app with its own database. Data is synchronized through a relay that could be insecure.

It’s nothing commercial, and we’re fully aware that a simple expense-sharing app doesn’t need this level of engineering. But we’re treating it as an intellectual exercise, and we’d like to do it exceptionally well rather than just make something that works.

Our main concern is that we’re not security experts by any means, we’re techy that can understand security concepts but lack any real experience in the field

We’re using three llm to review our protocol, build a simulator, run adversarial reviews etc

How confident would you be on the end result? At the moment we’re just writing the protocol specifications

Some of the design choices (as written by the AI):
End-to-end encryption using established cryptographic primitives.
Untrusted, self-hostable relays.
No central authority over application state.
Offline-first operation and deterministic convergence.
Multiple devices per user.
Device revocation with retrospective evaluation of signed events.
Recovery from a mnemonic phrase.
An append-only causal graph supporting editable and deletable content.

Side question: do you know of any tool or library that is basically doing the same?


r/cryptography • • 2d ago

Joint statement on transition to post-quantum cryptography

Thumbnail anthropic.com
228 Upvotes

r/cryptography • • 2d ago

If RSA were practically broken tomorrow, what would the real-world consequences be?

50 Upvotes

I'm learning about cryptography and I understand the basics of RSA: two large primes, a public key to encrypt, a private key to decrypt, and security that rests on factoring being hard.

I've been reading about how quantum computers might eventually break it. I'm trying to understand what would actually happen if that came true.

One consequence I can think of: anyone could derive a private key from a public key, so HTTPS connections that rely on RSA would no longer be confidential.

What else would break? I'd love to hear what others think, especially about things that aren't obvious, like digital signatures, certificates, software updates, or data that's already been recorded.

Thanks!


r/cryptography • • 2d ago

Cloudflare CEO

Thumbnail x.com
118 Upvotes

In a tweet by Cloudflare CEO Mathew Prince he insist that the move to post-quantum, or more accurately post-AI cryptography is urgently needed.

In response to the question "Was RSA cracked?" He replied "There are things much worse than that".

He also said he currently holds no cryptocurrency and to "Assume anything that uses RSA or Elliptic Curve cryptography".

Thoughts?