语言: 简体中文

抗量子性

对于所存储的文件,Locker 是抗量子的:它们的密钥从不依赖量子计算机可能攻破的那类密码学。

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.

你的文件:只用对称密钥

每个 Locker 都用 AES-256-GCM 加密,密钥由你设备上生成的 256 位随机密钥经 HKDF-SHA-512 派生。这个密钥从不经过公钥交换;它随链接传递,位于 # 之后,永远不会到达服务器。

  • Grover 算法能加快对称密钥的猜测,大约使其强度减半:256 位密钥仍保有约 128 位,远超任何实际攻击能力。
  • Shor 算法能攻破 RSA 和椭圆曲线密钥交换。Locker 从不用它们保护文件密钥,所以存储的 Locker 没有可供它攻击的东西。

连接:在支持时使用混合密钥交换

与服务器的连接由 HTTPS 保护。如果服务器的 OpenSSL 支持,nginx 配置会提供混合密钥交换 X25519MLKEM768,防止被录下的流量日后被量子计算机解密。证书(用于证明服务器身份)目前在整个网络上都还不是后量子的。即使某天被录下的连接被解密,其中的文件依然用 AES 加密,而密钥从未经过这条连接。

关于在攻击不断进步、包括因数分解变得更快时 Locker 的设计如何保持稳固,请参阅Locker 方法的优势。

取决于你的地方:口令

无论有没有量子计算机,口令的强度都取决于长度。只用短口令保护的 Locker,任何拿到链接的人都可以离线猜测。对于敏感文件,请使用链接加口令,或选择更长的生成口令。

我们说抗量子,而不是防量子:没有人能保证未来的研究会发现什么。

本页面采用 CC BY-SA 4.0 许可。PrivacySafe Locker 是自由软件,采用 GNU AGPL 第 3 版或更新版本;请参阅许可证。