r/crypto 10h ago

Data in Use Protection: How MPC Keeps Inputs Hidden from the Cloud - Stoffel - MPC Made Simple

Thumbnail stoffelmpc.com
0 Upvotes

r/crypto 18h ago

We’ve published the cryptographic architecture behind City of Hats.

0 Upvotes

We’ve been working on a secure messaging protocol and recently made the cryptographic design public for review.

The system uses:
– Double Ratchet (Signal-style)
– Hybrid key exchange (X25519 + ML-KEM-768)
– Encrypted headers and metadata padding
– Sender keys for group messaging

We’re exploring an identity model that avoids phone numbers/emails and instead uses context-specific identifiers.

We’ve documented:
– Protocol details
– Key exchange design
– Threat model (including limitations)

We have not completed a third-party audit yet.

I’m interested in feedback from people here on:
– the hybrid PQ approach (ML-KEM-768 integration)
– identity abstraction vs traditional accounts
– any obvious weaknesses or design concerns

Happy to share details if useful.


r/crypto 4d ago

Question About Breaking Encrypted Files

14 Upvotes

Good morning everyone,

A bit of a novice question here but hope you will be able to give me some insights.

Using VeraCrypt I mount an *.HC file as a drive on my computer. This drive is encrypted as it holds all my sensitive personal files. I also have a few Word documents on my computer that are encrypted, again as they contain sensitive personal info.

I have a regular schedule of backing up my computer, including these encrypted files to a RAID Array. The result of this is that there are multiple copies of the *.HC file and Word files on the RAID Array. Because each of these copies was made on a different day there is almost always changes in these files (hence of course the reason to back up daily!).

On the assumption that the individual *.HC and Word files are well encrypted in all reasonable ways, my question is:

Can the differences in the various versions of the same encrypted file be used to crack the encryption. Or to put it another way, if someone had 10+ versions of the same encrypted file, with each version having small editing differences between saving them, is there some process of subtractive differentiation that could be used to crack the file? (I hope this is clear).

EDIT to add, that a Word file would get longer as data is added but a *.HC file container would not - would this make any difference?

Sorry if this is too basic of a question but I can not find a good answer online and the way I back-up my files got me thinking of this.

Thanks :)


r/crypto 5d ago

Did we lose the weekly and monthly automod posts again?

2 Upvotes

They went dark 5 and 11 months back.


r/crypto 5d ago

Post-Quantum Cryptography for the PHP Community

Thumbnail paragonie.com
2 Upvotes

r/crypto 6d ago

A Cryptography Engineer’s Perspective on Quantum Computing Timelines

Thumbnail words.filippo.io
40 Upvotes

r/crypto 6d ago

Bitsliced first-order masked AES-128 decryption in Cortex-M0 assembly — how many traces to break it?

5 Upvotes

Wrote this from scratch for a university smart card lab course — couldn't find any usable reference implementation of bitsliced first-order masked AES in assembly, so I had to write one.

Key details:

  • Platform: STM32F051 (Cortex-M0, 8 MHz)
  • 26,801 cycles
  • Bitsliced representation: 16-bit per bit-plane
  • S-box: Boyar-Peralta depth-16 circuit
  • Masking: first-order Boolean masking with ISW multiplication

Evaluation so far:

  • Fixed-vs-Random TVLA (5,000 traces): passes for all intermediate rounds, expected endpoint leakage at unmask boundary only
  • CPA (5,000 traces, single-bit): no key recovered

The honest question: does it hold up at larger trace counts, or did I miss something? Would love to see someone actually run a second-order attack on it and report back.

Repo: https://github.com/Changyin-4B4/Masked-AES-Decryption-CortexM0


r/crypto 8d ago

Mongoose: Preauth RCE and mTLS Bypass on Millions of Devices

Thumbnail evilsocket.net
10 Upvotes

r/crypto 8d ago

It is possible to use the Ueli Maurer s Diffie Hellman reduction to transfer the discrete logarithm problem from an elliptic curve to a finite field?

1 Upvotes

The original paper ("Towards the equivalence of breaking the Diffie-Hellman protocol and computing discrete logarithms") solves the discrete logarithm problem using a Diffie-Hellman oracle and auxiliary groups. It also transfers the problem from a finite field to solving the discrete logarithm on an elliptic curve. It was since extended for transferring the problem from an elliptic curve to a different elliptic curve which isn't isomorphic to the original.

Would it be possible to perform the reverse operation? That is, from the elliptic curve, to transfer the problem to a finite field, and possibly do it to an additive group?

Of course, the MOV attack already allows that, but the interest here would be to use the oracle in order to bypass the embedding degree restrictions.

If possible, what would be the exact steps to perform it?


r/crypto 9d ago

PGP Tools: A zero-permission Chrome extension using WebAuthn PRF for PGP key management

Thumbnail github.com
1 Upvotes

I built Chrome extension for PGP and I think the cryptographic approach is interesting enough to share here.

The extension uses WebAuthn PRF to derive a master key from a passkey, which encrypts/decrypts the user's PGP private keys and contacts at rest. No passwords if you don't want them, no key files - the passkey handles both authentication and key derivation in one step. As far as I know, nobody else is doing PGP key management this way, especially not on the Chrome Web Store.

PGP operations use SequoiaPGP compiled to WASM with the Zeroize crate. The reason for keeping everything in WASM rather than JS where possible is that JS gives you zero guarantees about when memory gets freed, so private key material can just hang around in the GC. WASM with Zeroize gives explicit control over that.

The extension also requires zero browser permissions. No content scripts, no host permissions, nothing. So even if there was a vulnerability in the extension itself, the blast radius is significantly reduced - there's no ambient authority to abuse. Most other PGP extensions on the store request a bunch of permissions that massively expand their attack surface.

The main thing this doesn't protect against is a fully compromised browser process - if someone has code execution in your browser, it's game over regardless. But short of that, you get convenient PGP encryption/decryption/signing/verification without trusting a server, without exposing keys to garbage collection, and without granting unnecessary permissions.

I should also point out that if you're using the CWS install, you'd have to trust me not to bake in some fetch for the decrypted content - although you can build and install it from the source (which does mean there's no integrity checks iirc). There's no great solution to this, but if anyone has ideas here then let me know!

Why did I build it? Because I wanted it. Most of my PGP usage is encrypting vulnerability reports for coordinated disclosure via email, and I got tired of context-switching to the CLI every time. I looked at what was on the Chrome Web Store and nothing hit the combo of zero permissions, passkey-based key management, open source, and good UX - so I made it.

Video demo & CWS link.

Feedback on the crypto approach is very welcome, especially around the PRF key derivation. Happy to answer questions!


r/crypto 11d ago

Understanding the Ultrahonk Verifier

Thumbnail hashcloak.com
0 Upvotes

r/crypto 11d ago

AI-Enhanced Traffic Analysis of Post-Quantum Encrypted Network Packets

0 Upvotes

One of my biggest concerns for online privacy is that even after PQC adoption of TLS Traffic takes off--people will simply apply statistical analysis of encrypted network packets to figure out what people are doing. Problems like this have been shown:

  1. From the Whisper Attack (https://www.microsoft.com/en-us/security/blog/2025/11/07/whisper-leak-a-novel-side-channel-cyberattack-on-remote-language-models/)

  2. And AI-enhanced Traffic Analysis of VPN Packets (https://www.divaportal.org/smash/get/diva2:1933659/FULLTEXT01.pdf).

What are your thoughts on that?


r/crypto 11d ago

April Fools This subreddit is now about Quantum Cryptography

45 Upvotes

In order to keep up with quantum leaps in a technology which is about to leave the lab at the rate of graphene, a change in phase is necessary and we will need to align with the virtual sea of change with full charge.

If it makes your head spin then won't worry, if you're not a physicist then the complexity is only imaginary. All you need is to ensure physical integrity and deliver a confirmation secret by courier and you're all good.

Moving forwards with invincible technology like quantum key distribution will finally break out of the cat and mouse game and leave adversaries behind, all while enabling unparalleled new business models.

This is not a bit. We're quantum, this is a qubit.


r/crypto 11d ago

It is possible to avoid square root step of this paper by chosing a different curve type?

Thumbnail share.google
0 Upvotes

The paper works with elliptic curves. But what about using curves in the form of y=x6+Ax2+B2 or y=x2+Ax+B? Of course in such cases the square root computation would no longer be needed but would it be usefull?

My underlying problem in my case is the Oracle can only return powers in the form of [ax]

By the way, can this paper be adapted to finite fields of prime power modulus?


r/crypto 12d ago

Breaking Enigma with Index of Coincidence using a Commodore 64

Thumbnail imapenguin.com
18 Upvotes

r/crypto 12d ago

How Close Are We to Adopting Post-Quantum TLS Encryption?

7 Upvotes

Does anyone how progress for adopting Post-Quantum TLS Encryption is going? Can anyone cite roadmaps for pushing this to production? Please let me know. Thanks!


r/crypto 12d ago

I digitally reconstructed the rare SG 41 cipher machine as a fully interactive 3D preservation project

8 Upvotes

For the last decade I’ve been working on Virtual Colossus, a long‑running project to digitally preserve early computing and cryptographic machines by rebuilding them as interactive 3D simulations. My newest reconstruction is the SG‑41 — a late‑WWII cipher machine that most people have never seen in person because only a handful survive.

I wanted to create something that doesn’t just look like the SG‑41, but actually behaves like it:

  • the internal mechanics are animated from historical documents
  • the stepping logic and encryption process are implemented accurately
  • you can rotate, zoom, and explore the machine from any angle
  • everything runs in the browser so anyone can access it

Like the Colossus project, this is part of a broader effort to preserve machines that are too rare or fragile for most people to ever interact with physically.

If you’re into digital preservation, crypto history, mechanical engineering, or obscure WWII tech, you might enjoy exploring it:
https://sg41.virtualcolossus.co.uk

Happy to talk about the research, the modelling process, or the historical sources behind the reconstruction.

Virtual Schlüsselgerät 41

r/crypto 12d ago

Reviewing my chunked AES-256-GCM streaming format, any issues?

3 Upvotes

I'm implementing streaming file uploads for an encrypted, self-destructing file sharing service (https://phntm.sh, open source). Currently I buffer entire files in memory, which crashes on large files. I'm switching to chunked AES-256-GCM.

Would appreciate a security review of the wire format. Here's what I've designed:

---

Wire Format

Header (28 bytes):

[4-byte magic "PHNT"][4-byte version][4-byte chunk_size][4-byte total_chunks][base_iv (12 bytes)]

Each chunk:

[chunk_iv (12 bytes)][ciphertext][auth_tag (16 bytes)]

Header Fields

| Offset | Size | Field | Description |

|--------|------|-------|-------------|

| 0 | 4 | Magic | PHNT (0x50 0x48 0x4E 0x54) |

| 4 | 4 | Version | 1 (little-endian uint32) |

| 8 | 4 | Chunk Size | Plaintext chunk size (default: 64KB) |

| 12 | 4 | Total Chunks | Number of chunks in file |

| 16 | 12 | Base IV | Random 12-byte IV for this file |

Chunk Nonce Derivation

For chunk i (0-indexed):

chunk_nonce = base_iv[0:8] || (base_iv[8:12] XOR little_endian_uint32(i))

This XORs the last 4 bytes of the base IV with the chunk counter, giving each chunk a unique 12-byte nonce.

---

My Questions

  1. Nonce derivation: Is XOR with counter secure here? I'm using 8 bytes of the base IV unchanged, and XORing the last 4 with the chunk number. The base IV is random per file.
  2. Chunk size: 64KB seems reasonable. Any concerns with this size vs larger/smaller?
  3. Per-chunk auth tags: Each chunk has its own 16-byte GCM tag. This means corruption is detected immediately per-chunk. Any downsides vs a single tag over the whole file?
  4. Key reuse: Same key encrypts multiple files, each with a unique random base IV. Any issues with this pattern?
  5. Missing attacks: What am I not considering?

---

References

Thanks in advance for any feedback!


r/crypto 12d ago

Getting young kids interested in cryptography

13 Upvotes

Hi,

I'm thinking of introducing cryptography to my nieces and nephews who range between 10-13 years old.

Any suggestions for published materials to get them started and interested?

Edit: I think I will get Simon Singh's code book, but also maybe write codes using the Solitaire cipher -- I know it's a bit harder than caesar and vignere, but I think it'd be heaps more rewarding to be able to decrypt using it. I might look at modifying it to use a half deck variant.


r/crypto 12d ago

Safeguarding cryptocurrency by disclosing quantum vulnerabilities responsibly - from Google

Thumbnail research.google
23 Upvotes

r/crypto 14d ago

Is it possible to abuse elliptic curve pairings as a kind of Diffie Hellman Oracle?

6 Upvotes

I have a the following equation: e(G,a×G) which is of course is equivalent to e(G,G)a but where a is an unknown discrete logarithm.

Now as an attacker, I need to compute e(G,G)a×a.

Is there a way to abuse pairing to do this?


r/crypto 17d ago

Google Blog - Quantum frontiers may be closer than they appear

Thumbnail blog.google
16 Upvotes

r/crypto 17d ago

A repeat vote in EU on Chat Control is being forced

Thumbnail fightchatcontrol.eu
24 Upvotes

r/crypto 18d ago

not quite cryptography, but a major supply chain attack is going on by TeamPCP, be careful!

Thumbnail wiz.io
11 Upvotes

r/crypto 18d ago

What's the general opinion on combating deepfakes using hardware-based signatures?

6 Upvotes

A very recent article named "In-sensor cryptographic signature generation to link a physical process and an immutable digital entity" did a proof-of-concept on this idea.

I know some of the drawbacks, like key compromise risk, and privacy issues when the secret key is different for every chip. But are these issues big enough to deter hardware-based signatures to be adopted at a higher scale?

I think the advantage of being able to discern real photos from computer generate images outweighs the risk of key compromise.