語言: 繁體中文(粵語)

抗量子性

對於儲存嘅檔案,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 版或者之後嘅版本;請睇授權。