Language: English

Quantum resistance

Locker is quantum-resistant for the files it stores: their keys never depend on the kind of cryptography a quantum computer could break.

What quantum attacks mean for Locker: Grover, Shor, and recorded traffic.
Text version of this figure
  • Quantum resistance: Locker's file keys never depend on public-key cryptography.
  • Grover's algorithm speeds up guessing symmetric keys and halves a key's effective strength: 256-bit AES keeps about 128 bits, still far beyond any practical attack. Verdict: Locker files are protected.
  • Shor's algorithm breaks RSA and elliptic-curve key exchange. Locker never sends file keys that way: the key travels in the link, after #, so there is nothing to break in stored Lockers. Verdict: Locker files are not exposed.
  • Recorded traffic ("harvest now, decrypt later"): HTTPS uses the hybrid X25519MLKEM768 key exchange where supported, though certificates are not yet post-quantum, and the file stays AES-encrypted inside anyway. Verdict: transport hardened, with that qualification.
  • Passphrases are the exception that depends on you: a short passphrase can be guessed offline, quantum computer or not. For sensitive files, use the link plus a passphrase, or a longer generated phrase.

Your files: symmetric keys only

Each Locker is encrypted with AES-256-GCM, using keys derived with HKDF-SHA-512 from a 256-bit random key made on your device. That key is never sent through a public-key exchange; it travels in the link, after #, which never reaches the server.

  • Grover's algorithm speeds up guessing symmetric keys, roughly halving their strength: a 256-bit key keeps about 128 bits, still far beyond any practical attack.
  • Shor's algorithm breaks RSA and elliptic-curve key exchange. Locker never uses them for file keys, so a stored Locker gives it nothing to attack.

Connections: hybrid key exchange where supported

The connection to the server is protected by HTTPS. Where the server's OpenSSL supports it, the nginx configuration offers the hybrid X25519MLKEM768 key exchange, which protects recorded traffic against later decryption by a quantum computer. Certificates (which prove the server's identity) are not yet post-quantum anywhere on the web. Even if a recorded connection were decrypted one day, the file inside is still AES-encrypted with a key that never crossed it.

See Strengths of Locker's approach for how Locker's design holds up as attacks improve, including faster factoring.

Where you matter: passphrases

A passphrase is only as strong as its length, quantum computer or not. A Locker protected by a short passphrase alone can be guessed offline by anyone with its link. For sensitive files, use the link plus a passphrase, or choose a longer generated phrase.

We say quantum-resistant, not quantum-proof: no one can promise what future research will find.

This page is licensed under CC BY-SA 4.0. PrivacySafe Locker is free software under the GNU AGPL version 3 or later; see License.