r/cryptography • • 8h ago

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

30 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 • • 12h 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 • • 18h ago

Why does CDCL hit a wall at 19 rounds of SHA-256?

3 Upvotes

I wrote a CDCL solver for SHA-256 from scratch (C++17, F2 Gauss-Jordan elimination, 12-thread lemma sharing) and I'm stuck on how far it can go with round-reduced versions.

At 18 rounds it finds a preimage in about 4.5 s (11,451 conflicts). Caveat: that's one benchmark target, the 18-round digest of the padded "abc" block, not a random one. I fix the six registers A..F at step 16 to values derived algebraically from the digest, and absorb the last two rounds backwards against W16/W17. No external hints.

At 19 rounds it just dies. 241M conflicts over 11.75 h, no solution. My guess is nested Ch multiplexers and carry chains, but I haven't tested that, so take it as a guess.

For comparison I also implemented a simplified 18-step version of Wain/Basra's algebraic method (dropped the third Q-inversion, set a4 = a3). After an ~11 s table build it handles arbitrary 18-round targets in under 0.1 s. The 19-20 step results are Wain's (arXiv:2611.00512), and I re-verified his 46 witnesses.

So has anyone seen a similar cliff between 18 and 19 rounds with other encodings? And is there a better way to encode Ch and the carries for CDCL? Code:

https://github.com/nxvr443/sha256-cryptanalysis-20rounds


r/cryptography • • 20h ago

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

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

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

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

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

0 Upvotes

r/cryptography • • 1d ago

Is it a worth pathway to go?

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

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

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

wolfGuard - FIPS 140-3 Enable WireGuard

Thumbnail wolfssl.com
8 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 • • 3d 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

r/cryptography • • 4d ago

I've been studying Tor's cryptographic protocols for years and recently published my work

28 Upvotes

My interest in Tor started during my bachelor's thesis. I was particularly interested in understanding the cryptographic mechanisms behind onion routing, rather than just how to use the network.

Over the years, I continued studying the protocol, including circuit establishment, the ntor and ntor-v3 handshakes, key derivation, layered encryption, and how these mechanisms interact with Tor's security model.

This eventually became Anatomia di Tor, a free, open-source technical book accompanied by 20 educational laboratories built around a private Tor network.

I want to be transparent about something: AI tools contributed substantially to drafting and expanding the material under my direction. I've reviewed the project and carried out technical testing, but it hasn't undergone independent cryptographic review. I'm not claiming to have developed new cryptographic primitives or made any novel security discoveries.

One of the challenges I encountered was explaining complex mechanisms without introducing misleading simplifications, especially regarding authenticated key exchange, per-hop encryption, and what individual relays can actually learn.

I'd be genuinely interested in hearing from people with experience in cryptographic protocol design: what misconceptions or subtle security assumptions do you think are most important to address when explaining Tor's cryptographic architecture?

I'm sharing the project because I believe technical knowledge should be freely accessible and open to criticism and improvement.

If anyone is interested in examining the material, everything is available here:

https://github.com/aleff-github/onion-routing-anatomy

I welcome technical corrections and criticism, particularly where an explanation might diverge from the actual protocol specifications.


r/cryptography • • 5d ago

Difference between using a pgp signature and a simple hash to verify authenticity?

4 Upvotes

Been trynna understand pgp keys and their purpose but i dont understand the difference here. Lets say your distributing a binary on your website, u can either put a simple hash or your public key along side it. Whats the differnece here? If the site got compromised enough to change the binary and hash they can change the public to theirs too cant they? I tried searching it up but its mostly just vague its more or deep into download mirror chain stuff or smth that i dont understand lol. Appriciate any help :3 also keep in mind that i only started learning bout this like an hour ago lol dunno much.


r/cryptography • • 5d ago

38 rounds of SHA 256 collided

Thumbnail x.com
310 Upvotes

The messages

m1 = 33ee28ac5f8ef994c787777c079d17e11198d1beb527c8554bfeff014ab531951cf31bd2bbfc637e122da4f948e6e447d5a6b8b6ea9e7af5aac1aeabeeaceb0dbd07668b833fe88e689ffe8da52259da14b9855eee5138ba88355f4806d5cf5d161c50014c6b7d7e0e7eb888747559fc990a7af69dd8e59f57d7f6a3c0fbd03b

m2 = 33ee28ac5f8ef994c787777c079d17e11198d1beb527c8554bfeff014ab531951cf31bd2bbfc637e122da4f948e6e447d5a6b8b6ea9e7af5aac1aeabeeaceb0dbd07668b833fe88e689ffe8da52259da14b9855eee5138ba88355f4838b3d19d161c4ffd4c6b7d7e0e813888747559fc990a7af69dd8e59f57d7f6a3c0fbd03f

produce the same hash:

5b61bad37673bb3323d64bc4fad45b44a7e6bf048d787d6127ec259b12d0d63f

Going from 31 to 38 steps in a year is crazy


r/cryptography • • 7d ago

Will Bitcoin, Ethereum and other cryptocurrencies be in danger as quantum computers are getting stronger?

21 Upvotes

We know that a powerful enough quantum computer is able to break Elliptic-curve cryptography by using Shor's algorithm.

What solutions could we propose to protect those cryptocurrencies?


r/cryptography • • 11d ago

Anyone have access to "Toward Finding S-Box Circuits With Optimal Multiplicative Complexity"?

3 Upvotes

Hey everyone,

I’m currently trying to get my hands on a copy of "Toward Finding S-Box Circuits With Optimal Multiplicative Complexity" (by Yongjin Jeon, Seungjun Baek, and Jongsung Kim, published in IEEE Transactions on Computers, 2024).

I don't have institutional access, and IEEE thinks I should pay for that.

If anyone with university credentials or an IEEE Xplore subscription can help me out, I'd be very grateful.


r/cryptography • • 11d ago

With NIST IR 8547 finalized and FN-DSA (Falcon) still delayed, is ML-DSA-65 effectively the only viable general-purpose signature for decentralized P2P networks?

10 Upvotes

NIST finalized IR 8547 on October 27, 2026, deprecating all quantum-vulnerable digital signatures (RSA, ECDSA, EdDSA) across all security strengths after 2030 and disallowing them after 2035. At the same time, the finalized report confirms that the FIPS standard derived from FALCON (FN-DSA) is still under development, leaving ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) as the only finalized general-purpose post-quantum signature standards.

For decentralized consensus and peer-to-peer networks where every node independently verifies thousands of signatures per block without centralized PKI, that narrows the practical design space significantly:

First, SLH-DSA (FIPS 205) offers conservative hash-based assumptions, but its verification latency and multi-kilobyte signature sizes make it painful for high-throughput gossip and transaction mempools unless paired with heavy recursive SNARK aggregation.

Second, FN-DSA (Falcon) has the smallest bandwidth footprint at roughly 666 bytes for Level 1, which is why blockchain researchers love it on paper, but beyond the FIPS standard still not being finalized, constant-time floating-point signing on heterogeneous consumer hardware and mobile devices remains notoriously tricky to implement safely without side-channel leaks.

Third, ML-DSA-65 (FIPS 204) sits right in the middle: deterministic integer arithmetic, fast verification times on both desktop and mobile CPUs, and a finalized NIST standard, at the cost of a 1,952-byte public key and a 3,309-byte signature.

For cryptographers and protocol engineers working on decentralized systems today, are you standardizing on ML-DSA-65 as the default workhorse despite the 3.3 KB bandwidth hit, or are you holding out for FN-DSA or hash-based SNARK aggregation?


r/cryptography • • 11d ago

algorithm replicating

0 Upvotes

if i have secure implementation of algorithm in 1 language and i wana port it to other language and they dont have compiler is there secure way to do it?


r/cryptography • • 11d ago

I think we could reverse a private key based on a signed file for asymmetric encryption [SPECULATION]

0 Upvotes

So basically to sign a file you take the hash of the file and encrypt it with a private key and you decrypt the hash using public key, what I fear we could do is do a known-plaintext attack on the private key because you know the plaintext and ENCRYPTED version of the file hash using private key, and reverse the private key using the known-plaintext attack, that's what I fear could happen.


r/cryptography • • 11d ago

compensating enrophy with time

0 Upvotes

im thinking is this posible to make low entrophy password secure by adding more time to check if its right like for example u need to hash with argon2 with allot of cycles but password has small amount of enrophy will it be secure since attacker cant check all passwords fast


r/cryptography • • 11d ago

How does asymmetric cryptography REALLY WORK?

0 Upvotes

Like I get that the public key can't be reversed to show a private key and the mathematical relation between private and public keys but like how does it work in detail? How are the keys generated? How is the public key generated from the private key and why almost can't we reverse it?


r/cryptography • • 12d ago

What the AlphaProof Code proofs of Signal assume and leave out: a visual walkthrough.

Thumbnail sheets.works
4 Upvotes

r/cryptography • • 12d ago

[Career Advice] help me break into cryptography.

12 Upvotes

I am in my final year of btech (graduating in 2027).

I've built a sumcheck cpu and gpu (ICICLE) based prover and verifier, a low level OCI compliant container runtime (contributed to most of the features), and building an adaptive proving runtime on edge as a research project, including groth n stark (wip).

I always intend to go the deepest layer possible, now can derive the complete math equations of groth n stark so far, training myself to be comfortable with the math.

My interests are in applied cryptography, zkps, systems engineering.

Almost everyone wants to hire devs with experience, am not able to land a job.

As the graduation date is getting closer, I am losing confidence day by day, my mind calling it out and thinking to get a swe role.

How do I get a job in cryptography with a btech.

I really need you advice, if your company hires grad with some knowledge and willing to put in efforts please let me know. Thanks guys.


r/cryptography • • 12d ago

Visualizing GF(2^8) in AES: How do you usually explain the jump from polynomials to xtime (0x1b)?

8 Upvotes

I've been putting together an interactive visual guide on Galois Fields for AES, and the hardest part to explain cleanly is the transition from abstract polynomial arithmetic over GF(2) to the actual byte-level xtime (0x11b -> 0x1b) shift-and-XOR implementation.

Most resources either gloss over why 0x11b is irreducible or dump ring axioms before showing how MixColumns and the S-Box actually use the field structure.

For those who teach or implement cryptography: what mental model clicked best for you when connecting polynomial reduction to byte-level AES round operations?


r/cryptography • • 13d ago

Linear cryptanalysis lectures

49 Upvotes

I just wanted to let you all know that COSIC published a series of recorded lectures by Tim Beyne and Vincent Rijmen based on their book on linear cryptanalysis:

https://youtube.com/playlist?list=PLb8djaPEg5m4&si=YjtaH6kIoCsVKQ-x

Definitely worth checking if you enjoy symmetric cryptography cryptanalysis.


r/cryptography • • 14d ago

Detecting split views between small transparency logs when witnesses can only be reached by courier

3 Upvotes

I am sketching a design for a federation of small, independent append-only logs, one per community, where each log's signed tree head is cosigned by neighbouring logs whenever someone physically travels between them. Links between the communities are intermittent, and some are down for weeks. The records are access receipts and contain no personal data, which stays encrypted off the log under a key only its subject holds.

My worry is split views. If a log operator shows one tree to the neighbour on the left and a different one to the neighbour on the right, how long can that survive when cosigning happens in occasional bursts rather than continuously? I understand how gossip among auditors handles this in the CT ecosystem, but I do not know how the guarantees degrade when the gossip is hand-carried and the gaps are days or weeks. Is there a standard way to bound the window in which a lie could go unnoticed, and what would you put in each checkpoint to make comparison cheap for a courier carrying very little?

A second problem is key loss. If the data subject dies or loses their key, the file becomes unreadable and, in my design, nobody can be notified of accesses to it. Social recovery with threshold shares seems the obvious answer, but it also gives a handful of shard holders a quiet power over the dead. Does anyone have experience with recovery schemes where the shard holders themselves must be public and logged, and what goes wrong in practice?

I am doing this for a fictional world I am building at r/TheGreatFederation, but I want the cryptography to be honest, so please be as unkind to the design as it deserves.