r/cryptography • • 1h ago

Microsoft's latest statement on browser post-quantum support

2 Upvotes

r/cryptography • • 1h ago

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

Thumbnail eprint.iacr.org
2 Upvotes

r/cryptography • • 2h 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 • • 7h ago

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

1 Upvotes

r/cryptography • • 12h 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 • • 17h 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 • • 17h 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 • • 19h ago

Is elliptic curve crypto broken?

Thumbnail neilmadden.blog
63 Upvotes

r/cryptography • • 19h 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 • • 20h 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 • • 22h ago

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

Thumbnail bleepingcomputer.com
119 Upvotes

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

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

Thumbnail runtimewire.com
377 Upvotes

r/cryptography • • 1d ago

How do we design post-quantum protocols that are also resilient against AI-assisted multistage attacks, partial secret exposure and authentication compromise?

0 Upvotes

r/cryptography • • 1d ago

What are the prerequisites for beginners to learn PQC?

1 Upvotes

I work in Cybersecurity and understand the classic cryptography basics.


r/cryptography • • 1d ago

Rumors Will Metastasize

Thumbnail soatok.blog
20 Upvotes

r/cryptography • • 1d ago

Should I be worried?

0 Upvotes

I’m not in cryptography. I keep seeing these headlines that the encryption algorithms that our whole internet depends on might be compromised by recent AI advances. How credible is this?


r/cryptography • • 1d ago

What should we use in SSH now that traditional cryptography is gone?

0 Upvotes

I read about ML-KEM but `mlkem768x25519-sha256` still has 25519 (allegedly broken) and sha256 (weakened). On the other side there's `ml-dsa44-ed25519` which again uses ed25519.

What is the combo to use for SSH key and authentication, as of right now? Something standard yet able to survive a few weeks?


r/cryptography • • 1d ago

Actual cryptographic findings by a new Chinese Model

Thumbnail github.com
104 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 • • 1d ago

Could AI have discovered a backdoor in 256-bit elliptic curve cryptography?

0 Upvotes

Disclaimer: I'm not a cybersecurity or cryptography expert. I'm an ML engineer trying to understand what might be happening.

Based on some industry information I've come across, I have reason to believe that the recent coordinated push towards post-quantum cryptography from DOW/NSA might be related to a vulnerability in 256-bit elliptic curve cryptography.

I vaguely remember the Snowden leaks from 2013 and the controversy surrounding the suspected NSA backdoor in Dual_EC_DRBG, as well as the questions raised about the origins of certain NIST elliptic curve parameters.

Could frontier AI models have potentially:

  • Figured out how to exploit a previously suspected backdoor?
  • Discovered a previously unknown mathematical weakness in one of these elliptic curves?

I'm particularly curious whether AI could have uncovered a previously unknown weakness or figured out how to exploit an intentionally embedded backdoor that has existed for decades

Would love to hear what people with actual expertise in cryptography think about this possibility.


r/cryptography • • 1d ago

PKE After RSA

0 Upvotes

Hi,

I'm a C programmer that has worked on the development of several secure communication systems, all backed by PKE (public-key encryption). The latest library I developed was based on the NTRUEncrypt PKI. With all of the latest rumors swirling, what do you believe will be the next PKE of choice?

I'm aware of the McEliece system, but that is a KEM. My understanding of it is that there is no way to directly encrypt a given byte stream with the public/ private key pair.

The current libraries that I am aware of are libSodium, NTRUEncrypt, and wolfCrypt (RSA). Are there any other libraries that would be worth looking into?
Thanks.


r/cryptography • • 1d ago

exactpass 0.3.0: my password generator has no RSA or elliptic curves in it, which has never been a selling point until this week

Thumbnail 25dark25.github.io
0 Upvotes

Yes, the title is a joke. A password generator never had anything to do with RSA or ECC, that's the point: it's the one week a boring tool gets to brag about being boring.

What it does differently from most generators: it computes the exact entropy of what it generates instead of length times log2 of the alphabet, which overcounts when you force one char of each type (it does inclusion-exclusion over the classes). And it refuses to generate anything under your minimum, 128 bits by default.

Everything runs in the browser, the page sends nothing and stores nothing. It's on GitHub Pages and there's a release.txt with the hash of every file, so you can check them against the signed release. There's also a CLI on npm (npx exactpass password).

This release is mostly UI. I redid the layout and switched dark mode to the same grey as VS Code, because I'm in that editor all day and the old black looked like a hole in the screen next to it.

I built it with help from Claude, the README says so. The core is a few small files in src/ with no dependencies. If you see something wrong in the math I'd really like to know.

Code: https://github.com/25Dark25/exactpass

Edit: rewrote the post, the first version read like a press release.


r/cryptography • • 1d ago

Is P-256 classically broken?

45 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/