量子金鑰分發如何運作:BB84 與 E91 協定詳解
本頁標題、字幕、摘要與閱讀筆記為已儲存的 AI 譯文,可能有誤。時間戳與來源一致,可展開查看原始字幕,並對照原影片核對。
以淺顯易懂的方式逐步說明 XOR 加密、光子偏振與量測基底,展示 BB84 與 E91 量子金鑰協定如何偵測竊聽者。
逐字稿來源:創作者上傳至 YouTube 的字幕。AI 標點由 Vidleaf 加入;原始措辭與時間戳錨點均保留。原始逐字稿可在下方取得。
AI 生成摘要
影片說明 Alice 如何用一次性密碼本傳送 24 位元的值給 Bob,作法是將事先共享的隨機金鑰與訊息進行 XOR,讓竊聽者無法判斷哪些位元被翻轉,而 Bob 則能還原。一次性密碼本非常強大,但需要事先共享金鑰,並不實用,因此 https 網站採用公開金鑰密碼學;目前這是安全的,但可能被找出數學上的缺陷,且未來的量子電腦極有可能破解公開金鑰方法。量子物理提供了無需實體共享金鑰的金鑰分發方式:光子具有可量測為二元結果的偏振,而由於偏振是量子力學的現象,光子可以處於疊加態,因此竊聽者的量測會使狀態塌縮並暴露其存在。在 BB84 中,Alice 與 Bob 各自隨機選擇直角基底或對角基底,公開比較基底(而非位元),保留相符的情況,並比較部分位元以偵測竊聽者,而竊聽者因不可複製定理無法複製光子;這已在實驗室中以及由中國與奧地利的團隊透過衛星演示,光纖通訊也可行,開啟了量子網際網路的可能性。即使有多個惡意行為者,仍可偵測,他們最糟也只能造成阻斷服務攻擊。Ekert 的 E91 使用處於貝爾單重態的糾纏光子對,在同一基底量測時會得到相反的結果,這些情況可建立隨機的一次性金鑰;若攔截到的光子被重新送給 Bob,它就不再與 Alice 的光子糾纏,這可以被偵測出來,而使用三種以上的量測方向時,未對齊的情況可用來檢查相關性。這也已在實驗室中及長距離上獲得驗證。這些方法可應用於其他次原子粒子,如電子甚至分子,但光子最為實用:容易用商用雷射產生、容易偵測、以光速移動,且能在真空與大氣中傳播。對於不熟悉量子物理的人,推薦 Griffiths 與 Schroeter 所著的教科書。
由逐字稿生成。請對照原始影片檢查連結的段落。
含時間戳的章節摘要
量子加密與一次性密碼本基礎
使用 XOR 的一次性密碼本加密
- [0:24] Alice 想秘密傳送頻道標誌中的紫色給 Bob,該顏色以三個位元組(紅、綠、藍)表示,即 24 位元。
- [0:48] 使用一次性密碼本時,Alice 取一段事先共享、完全隨機且不具資訊價值的 24 位元金鑰,逐位元套用 XOR:相同位元得零,不同位元得一。
- [1:20] 金鑰會翻轉原始資訊中的某些位元,藉此進行編碼;竊聽者無法分辨哪些位元被翻轉,而持有金鑰的 Bob 則能輕鬆地只把正確的位元翻轉回來。
一次性密碼本的優勢與實務限制
- [1:44] 一次性密碼本是非常好的加密方法,因為除了知道隨機金鑰之外,沒有任何數學或邏輯方法可以解碼訊息。
- [1:57] 它的缺點是 Alice 與 Bob 必須事先共享金鑰;若要安全地瀏覽網站,你得先親自跑一趟,而且可能還得不斷回去分享新的金鑰,以防駭客取得了舊金鑰。
用於 HTTPS 的公鑰密碼學
- [2:15] 由於實體共享金鑰並不實際,以 https 開頭的網站及其他網際網路服務都採用公鑰密碼學。
公鑰密碼學及其未來風險
金鑰對的結構與安全基礎
- [2:27] 每位參與者都有一對金鑰:各自保管的私鑰,以及可公開分享的公鑰。
- [2:34] 這種方法之所以如此命名,是因為即使全世界都知道 Alice 與 Bob 的公鑰,他們仍能安全地通訊。
- [2:43] 公鑰密碼學在數學上比一次性密碼本複雜得多。
數學缺陷與量子威脅
透過光子偏振的量子金鑰分發
以光子偏振編碼金鑰
- [3:14] 量子物理提供了一種無須親自跑一趟就能安全分發金鑰的方法。
- [3:23] 光由具有偏振的光子組成,偏振即電場振盪的方向,可在單一光子層級相對於某個軸進行測量。
- [3:38] 沿垂直方向測量可得知光子是上下振盪還是左右振盪,這種二元的結果讓 Alice 與 Bob 能編碼一次性金鑰,例如以左右振盪代表 0、上下振盪代表 1。
透過態塌縮偵測竊聽者
BB84 量子金鑰分配
光子偏振與測量
- [4:49] 此協定為 Bennett 與 Brassard 的 1984 量子金鑰分配,稱為 BB84;其中 Alice 發送偏振代表 1 與 0 的光子,Bob 則對其進行測量。
- [5:04] 產生具有特定偏振的光子很簡單,因為偏光太陽眼鏡或光學濾鏡會讓一種偏振通過並濾除其餘偏振,實際上就是以量子力學方式測量每個光子。
- [5:24] 市面上有更精密且精確的設備可做這件事,但價格相對便宜。
- [5:30] 將光子發射器側轉 45°,會使每個光子相對於 Bob 垂直對齊的測量系統,處於垂直與水平偏振的疊加態。
離散測量結果與基底
- [5:49] 量子力學從根本上只允許測量給出特定、離散或量子化的結果,這正是量子物理得名的由來。
- [6:00] 當 Alice 的發射器相對垂直方向順時針轉 45° 時,每個光子有 50% 的機率被測量為水平偏振,50% 的機率為垂直偏振。
- [6:12] 若 Bob 將測量設備順時針傾斜 45°,則無論 Alice 發送什麼,他都有 100% 的機率測量正確。
- [6:23] 在原始的 BB84 論文中,垂直方向稱為直角基底,其中垂直偏振光子代表 1、水平偏振光子代表 0;傾斜 45° 則為對角基底,其中反斜線方向的光子代表 1、斜線方向的光子代表 0。
隨機選擇基底與公開比對
- [6:47] Alice 隨機選擇一個基底並發送資料位元,Bob 也隨機選擇一個基底進行測量。
- [6:59] 平均而言,有一半的時間他們選到相同基底,Bob 便能準確收到 Alice 發送的位元;若基底不同,該測量便無用,因為 Bob 會有一半的時間得到錯誤答案。
- [7:17] 他們公開分享發送與測量所用的基底,這是安全的,因為公開的只是基底而非位元本身;只有 Alice 與 Bob 知道這些位元,而它們現在可作為一次性金鑰使用。
偵測竊聽者
- [7:43] 竊聽者若測量並重送光子,並不知道使用的是哪個基底,遲早必然會用錯基底,從而破壞通訊。
- [8:01] 例如,若 Alice 在對角基底送出一個反斜線光子,而以直角基底測量的竊聽者可能送出一個垂直光子,Bob 在對角基底測得為正斜線,於是 Alice 送出的是 1,Bob 得到的卻是 0。
- [8:21] Alice 與 Bob 公開比對他們認為成功共享的部分位元,任何不一致都會揭露有竊聽者存在。
不可複製定理與已驗證的連結
偵測通訊中的惡意行為者
惡意行為者的偵測與限制
Ekert 的 E91 糾纏式金鑰配送
糾纏光子對與貝爾單態
- [9:57] E91,即 Ekert 於 1991 提出的金鑰配送方法,使用成對的糾纏光子。
- [10:05] 糾纏意味著測量其中一個光子會影響另一個,即使它們相距數公里之遙。
- [10:12] 在 E91 中,Alice 與 Bob 各自收到處於貝爾單態的一對光子中的一個。
- [10:20] Alice 以相等機率隨機得到 0 或 1,但只要 Bob 以相同基底或方向測量,他就會得到相反的結果。
隨機基底測量與金鑰擷取
- [10:54] Alice 與 Bob 隨機以直角基底或對角基底測量各自的光子,因此有時使用相同基底,有時則不同。
- [11:06] 他們事後公開各自的測量基底,並利用測量基底相同的那些時刻來建立一次性金鑰。
- [11:12] 由於糾纏光子的量子特性,金鑰是隨機的。
透過遺失的糾纏來偵測竊聽者
- [11:17] 如果竊聽者攔截並重新發送前往 Bob 的光子,它就不再與 Alice 的光子糾纏,這可以被偵測到。
- [11:27] 每一方實際上都有三種以上的方式來調整其測量裝置的方向。
- [11:33] 他們利用基底未對齊的時刻來計算測量結果的相關程度;如果它們沒有以特定方式相關,光子就不是以糾纏狀態抵達,因此存在竊聽者。
實驗驗證
- [11:45] 此方法也已在實驗室中以及長距離下證明可行。
光子作為量子方法的實用選擇
為何光子比其他粒子更受青睞
- [11:50] 所述方法可應用於其他次原子粒子,例如電子甚至分子,但光子是最實用的選擇。
- [11:56] 光子很容易用商用雷射產生,也很容易偵測。
- [12:04] 光子自動以光速移動,且能在真空和大氣中傳播。
量子物理背景與進一步學習
前 3 段雙語對照預覽 · 免消耗額度
以下展示前 3 段已儲存繁體中文譯文與英文原版字幕的逐段對照(零額度消耗):
我們在世界各地傳輸的資料量不斷增加。個人資訊、商業紀錄和政府機密的巨大價值,使它們成為竊聽者眼中的寶貴目標。別擔心:這不是 VPN 的廣告。我要說明一項實際運作的技術,它利用量子物理來加密數位資訊。想像 Alice 想偷偷把頻道標誌中的紫色傳給 Bob。電腦螢幕上的顏色由三個位元組表示:紅、綠、藍各一個。三個各八位元的位元組,意味著一串 24 個一和零。Alice 和 Bob 可以保密的一種方法,是使用稱為一次性密碼本的技術。Alice 取用她先前與 Bob 共享的數位金鑰。這把金鑰只是一個二進位數字,同樣由 24 個位元組成,但完全是隨機選取的。它們刻意不具任何資訊價值。
We transmit an ever increasing amount of data all over the world. The immense value of our personal information, commercial records and government secrets makes them valuable targets for eavesdroppers. Don't worry: this is not an advert for a VPN. I'm going to explain a working technology which uses quantum physics to encrypt digital information. Imagine that Alice wanted to secretly send Bob the purple color in my channel logo. Colors on a computer screen are represented by three bytes: one for each of red, green and blue. Three bytes of eight bits each means a sequence of 24 ones and zeros. One way Alice and Bob can keep it secret is with a technique called a one-time pad. Alice takes a digital key which she has shared with Bob beforeand. This key is just a binary number, also composed of 24 bits, but they are chosen completely at random. They deliberately have no informational value
無論如何。現在,Alice 對每個位元輪流執行所謂的互斥或運算(簡稱 XOR)。簡單來說,如果兩個位元相同,結果就是零;如果兩個位元不同,結果就是一。實際上,金鑰被用來翻轉原始資訊——紫色——的某些位元。資訊現在已經被編碼了。任何攔截到它的竊聽者都不知道哪些位元被翻轉了,因此無法解碼訊息。但對於擁有金鑰的 Bob 來說,只翻轉回正確的位元非常簡單。即使是慢速電腦也能非常輕鬆地執行或復原 XOR 運算。一次性密碼本是非常好的加密方法,因為除了知道隨機金鑰之外,沒有數學或邏輯方法可以解碼訊息。缺點是通訊的雙方——我例子中的 Alice 和 Bob——必須事先共享金鑰。如果你想安全地瀏覽網站,你就必須
whatsoever. Now, Alice performs what is called the exclusive or operation (XOR for short) to each of the bits in turn. Put simply, if both bits are the same then the result is zero; if both bits are different, the result is one. In effect, the key has been used to flip some of the bits of the original information - the color purple. The information has now been encoded. Any eavesdropper who intercepts it does not know which of the bits have been flipped and so cannot decode the message.Bbut for Bob who has the key, it's very straightforward to flip back only the correct bits. Even a slow computer can do or undo the XOR operation very easily. The one-time pad is a very good encryption method because there is no mathematical or logical way to decode the message, other than just knowing the random key. The downside is that the people communicating - Alice and Bob in my example - must have shared the key beforehand. If you wanted to browse a website securely, you would have to
親自先到那裡共享金鑰。事實上,你大概還會想定期回去並共享新的金鑰,以防駭客真的取得了舊金鑰。那並不實際,所以以 https 開頭的網站和其他網際網路服務使用所謂的公開金鑰密碼學。在這種情況下,Alice 和 Bob 有一對金鑰。一個是私密的,由他們各自保管;另一個是公開的,可以共享。這種方法之所以如此命名,是因為即使全世界都知道他們的公開金鑰,Alice 和 Bob 仍然可以在彼此之間安全地通訊。
physically go there first to share a key. In fact, you would probably also want to keep going regularly and sharing new keys just in case a hacker did get their hands on an old one. That is impractical, so websites which begin with https and other internet services use what is called public key cryptography. In this case, Alice and Bob have a pair of keys. One is private that each of them keeps individually and the other is public which they can share. The approach is named after the fact that even if the whole world knows their public keys, Alice and Bob can still communicate amongst themselves securely.
[0:02] 我們在世界各地傳輸的資料量不斷增加。個人資訊、商業紀錄和政府機密的巨大價值,使它們成為竊聽者眼中的寶貴目標。別擔心:這不是 VPN 的廣告。我要說明一項實際運作的技術,它利用量子物理來加密數位資訊。想像 Alice 想偷偷把頻道標誌中的紫色傳給 Bob。電腦螢幕上的顏色由三個位元組表示:紅、綠、藍各一個。三個各八位元的位元組,意味著一串 24 個一和零。Alice 和 Bob 可以保密的一種方法,是使用稱為一次性密碼本的技術。Alice 取用她先前與 Bob 共享的數位金鑰。這把金鑰只是一個二進位數字,同樣由 24 個位元組成,但完全是隨機選取的。它們刻意不具任何資訊價值。
[1:05] 無論如何。現在,Alice 對每個位元輪流執行所謂的互斥或運算(簡稱 XOR)。簡單來說,如果兩個位元相同,結果就是零;如果兩個位元不同,結果就是一。實際上,金鑰被用來翻轉原始資訊——紫色——的某些位元。資訊現在已經被編碼了。任何攔截到它的竊聽者都不知道哪些位元被翻轉了,因此無法解碼訊息。但對於擁有金鑰的 Bob 來說,只翻轉回正確的位元非常簡單。即使是慢速電腦也能非常輕鬆地執行或復原 XOR 運算。一次性密碼本是非常好的加密方法,因為除了知道隨機金鑰之外,沒有數學或邏輯方法可以解碼訊息。缺點是通訊的雙方——我例子中的 Alice 和 Bob——必須事先共享金鑰。如果你想安全地瀏覽網站,你就必須
[2:06] 親自先到那裡共享金鑰。事實上,你大概還會想定期回去並共享新的金鑰,以防駭客真的取得了舊金鑰。那並不實際,所以以 https 開頭的網站和其他網際網路服務使用所謂的公開金鑰密碼學。在這種情況下,Alice 和 Bob 有一對金鑰。一個是私密的,由他們各自保管;另一個是公開的,可以共享。這種方法之所以如此命名,是因為即使全世界都知道他們的公開金鑰,Alice 和 Bob 仍然可以在彼此之間安全地通訊。
[2:43] 當然,它在數學上比一次性密碼本複雜得多。公開金鑰密碼學目前是安全的,但問題已在地平線上浮現。對於目前使用的每一種方法,都可能發現數學上的某些缺陷而將其破解。這將由一大群研究人員花費數年完成,而不是某個在臥室裡的駭客,但這種事以前發生過。更不祥的是,未來的量子電腦很可能能夠破解公開金鑰方法。所以,我們又回到了一次性密碼本。我們如何安全地分發金鑰,而不必親自跑到某個地方?量子物理學也有答案。
[3:23] 光由光子組成,而光子具有偏振。偏振就是電場振盪的方向。偏振可以在個別光子的層級上,相對於某個軸或方向來測量。如果你沿垂直方向測量,就能判斷某個光子是上下振盪還是左右振盪。這是二元的,所以愛麗絲和巴伯可以透過例如把左右振盪稱為 0、把上下振盪稱為 1,來溝通他們的一次性金鑰。
[3:53] 在我深入更細部的細節之前,先說明愛麗絲和巴伯如何確保他們交換的金鑰是安全的。偏振是根本上的量子力學性質,這意味著光子可以處於兩種互斥結果的疊加態——上下振盪與左右振盪——同時並存。如果有竊聽者,他們就必須逐一攔截每個光子來測量它。透過進行測量,他們會使光子的量子態塌縮。正是這種從兩種狀態的疊加塌縮成其中單一狀態的現象,讓愛麗絲和巴伯得知有竊聽者存在。若是如此,他們就會丟棄金鑰並稍後再試,或者報警,或者採取任何必要措施,直到竊聽者消失為止。當沒有竊聽者時,愛麗絲和巴伯就能確定,只有他們、宇宙中再無他人知道這把金鑰。
[4:46] 量子金鑰分發最簡單的方法,是班奈特與布拉薩德在 1984 年提出的,簡稱 BB84。如我所提,愛麗絲可以送出具有特定偏振的光子,對應於 1 和 0,而巴伯可以測量它們。其實要產生具有特定偏振的光子相當容易。許多太陽眼鏡或光學濾鏡的原理,就是讓某一偏振的光通過,並濾掉其餘所有光。每當一個光子穿過你的偏光太陽眼鏡,你實際上就是在量子力學意義上測量它。當然,也有更精密複雜的設備可以做到這件事,但相對便宜。要把光子的量子態變成垂直與水平偏振的疊加態也相當容易:只要把光子發射器側轉 45 度即可。
[5:41] 相對於 Bob 垂直對齊的測量系統,現在每個光子都處於兩種可能結果的疊加態。這是因為量子力學從根本上只允許測量給出特定的結果。另一個說法是,在數學意義上是離散的,或者說量子化的。這正是量子物理得名的原因。如果 Alice 的發射器位於偏離垂直方向順時針 45° 處,每個光子有 50% 的機率被測量為水平,50% 的機率被測量為垂直。
[6:12] 當然,Bob 也可以將他的測量設備順時針傾斜 45°,然後無論 Alice 發送什麼,他都能有 100% 的時間正確測量。在原始的 BB84 論文中,將設備置於垂直方向稱為直角基底。在這種情況下,垂直光子對應於 1,水平光子對應於 0。將設備傾斜 45° 稱為對角基底,其中方向像反斜線的光子是 1,方向像正斜線的光子是 0。
[6:47] 現在的想法是,Alice 隨機選擇一個基底並發送資料位元——即 1 或 0。相應地,Bob 也隨機選擇一個基底並進行測量。平均而言,有一半的時間他們會選擇相同的基底——相同的對齊方式——那麼無論 Alice 發送了什麼位元,Bob 都能確定準確收到。如果兩個基底不同,那麼測量就是無用的,因為無論 Alice 發送了什麼,Bob 都會有一半的時間得到錯誤的答案。此時他們並不知道哪些資料位元是準確的,哪些是垃圾。他們現在公開分享發送和測量所用的基底。這意味著任何人都可能攔截這些資訊,但這沒關係——這些只是基底,不是位元本身,所以即使全世界都知道基底也無所謂。只有 Alice 和 Bob 知道位元本身,這些位元現在可以用作一次性金鑰。
[7:43] 然而,現在讓我們想像有一個竊聽者已經測量並重新發送了光子。因為竊聽者不知道發送光子時使用了哪個基底,他們不可避免地會在某個時刻使用錯誤的基底,從而搞亂 Alice 和 Bob 之間的通信。比如說,Alice 在對角基底中發送了一個反斜線光子。竊聽者碰巧在直角基底中測量並發送了一個垂直光子。Bob 在對角基底中測量並得到了一個正斜線。換句話說:Alice 發送了一個 1,而 Bob 因為竊聽者而得到了一個 0。
[8:21] Alice 與 Bob 挑選一些他們認為已成功共享的位元,並公開進行比對。若其中任何一個不相符,他們就知道有竊聽者存在。竊聽者可能想像的一種手法,是想辦法複製 Alice 送出的光子。假設有某種裝置能完美複製通過它的光子,那麼竊聽者就能截取複製的光子並加以測量,而 Bob 毫不知情。然而,量子力學中有所謂的不可複製定理,嚴格禁止這種做法。因此,竊聽者無法在不擾動光子的情況下測量它們。Alice 與 Bob 要嘛成功共享他們的一次性金鑰,要嘛就知道有人正在竊聽。BB84 方法已在實驗室中成功演示,甚至用於與衛星通訊。特別是中國的一個團隊在其軌道的某一段與衛星建立了安全連結,之後奧地利的團隊則在軌道的另一段完成了同樣的事。
[9:22] 能夠透過這種方式在太空中通訊,意味著地球上任何地點的雙方之間都能做到。透過光纖以這種方式通訊也是可行的。這開啟了量子網際網路的可能性,金鑰可以散布到全世界。這種方法的特性意味著,即使你的網路中存在多個惡意行為者想窺探你,也總是有辦法至少偵測到他們。他們最壞也只能發動阻斷服務攻擊——阻止你通訊,但無法暗中讀取你的訊息。一種更優雅的金鑰分發方法是 Ekert 於 1991 年提出的方法,簡稱 E91。它使用成對的光子,也就是所謂的「糾纏」光子。簡而言之,這意味著測量其中一個會影響另一個,即使它們相隔數公里之遠。
[10:12] 在 E91 中,Alice 與 Bob 各自收到一對光子中的一個,處於所謂的貝爾單態。Alice 可能以相等機率隨機得到 0 或 1 的結果,但不論她測量到什麼,只要 Bob 以相同的基底或相同的方向測量,他就會得到相反的結果。這是相當複雜的量子效應,但已證明 Alice 對其光子所做的測量會影響 Bob 的光子,反之亦然。說來奇怪,測量一個光子的動作似乎會使另一個光子的偏振瞬間確定。根據我們目前最佳的理解,第一次測量的結果也是完全隨機的,在測量發生之前無法預測。
[10:54] 一如往常,愛麗絲與鮑伯會隨機以直角基底或對角基底來量測他們的光子。他們有時會用相同的基底量測,有時則用不同的基底。他們會在事後公開各自的量測基底,並利用恰好以相同基底量測的那些時刻來建立一次性金鑰。由於糾纏光子的量子特性,這把金鑰是隨機的。若竊聽者攔截並重新發送前往鮑伯的光子,該光子就不再與前往愛麗絲的光子糾纏,而這可以被偵測出來。我不深入數學細節,但他們每個人其實都有三種以上的方式來調整量測裝置的方位。他們利用基底未對齊的那些時刻,來計算量測結果的相關程度。若相關性不符合特定模式,就代表光子並非以糾纏狀態抵達,因此存在竊聽者。這種方法也已在實驗室中及長距離下證實可行。我所說的一切都可套用到其他次原子粒子,例如電子甚至分子,但光子
[11:56] 是最實際的選擇。光子很容易用商用雷射產生,也很容易偵測。它們自動以光速移動。它們能在真空與大氣中傳播。如果你熟悉量子物理,我所述方法背後的原理應該不難理解。如果你不熟悉,我推薦 Griffiths 與 Schroeter 的教科書。如果你希望我完整解說,恐怕你得聘我開一門關於這個主題的 20 講次課程,因為內容可以相當複雜。感謝你的觀看。
查看英文原始字幕
[0:02] We transmit an ever increasing amount of data all over the world. The immense value of our personal information, commercial records and government secrets makes them valuable targets for eavesdroppers. Don't worry: this is not an advert for a VPN. I'm going to explain a working technology which uses quantum physics to encrypt digital information. Imagine that Alice wanted to secretly send Bob the purple color in my channel logo. Colors on a computer screen are represented by three bytes: one for each of red, green and blue. Three bytes of eight bits each means a sequence of 24 ones and zeros. One way Alice and Bob can keep it secret is with a technique called a one-time pad. Alice takes a digital key which she has shared with Bob beforeand. This key is just a binary number, also composed of 24 bits, but they are chosen completely at random. They deliberately have no informational value
[1:05] whatsoever. Now, Alice performs what is called the exclusive or operation (XOR for short) to each of the bits in turn. Put simply, if both bits are the same then the result is zero; if both bits are different, the result is one. In effect, the key has been used to flip some of the bits of the original information - the color purple. The information has now been encoded. Any eavesdropper who intercepts it does not know which of the bits have been flipped and so cannot decode the message.Bbut for Bob who has the key, it's very straightforward to flip back only the correct bits. Even a slow computer can do or undo the XOR operation very easily. The one-time pad is a very good encryption method because there is no mathematical or logical way to decode the message, other than just knowing the random key. The downside is that the people communicating - Alice and Bob in my example - must have shared the key beforehand. If you wanted to browse a website securely, you would have to
[2:06] physically go there first to share a key. In fact, you would probably also want to keep going regularly and sharing new keys just in case a hacker did get their hands on an old one. That is impractical, so websites which begin with https and other internet services use what is called public key cryptography. In this case, Alice and Bob have a pair of keys. One is private that each of them keeps individually and the other is public which they can share. The approach is named after the fact that even if the whole world knows their public keys, Alice and Bob can still communicate amongst themselves securely.
[2:43] Naturally, it is much more mathematically complicated than the one-time pad. Public key cryptography is secure for now, but there are problems on the horizon. For each of the current methods in use, some flaw with the mathematics may be discovered which breaks it. This will be done by a major group of researchers working for years, not some hacker in their bedroom, but this has happened before. More ominously, it is very likely that quantum computers in the future will be able to break public key methods. So, we're back to the one-time pad. How can we distribute the key securely, without physically having to go somewhere? Quantum physics also has the answer.
[3:23] Light is made up of photons which have a polarization. This is the direction in which the electric field oscillates. The polarization can be measured at the level of individual photons relative to some axis, or direction. If you measure in the vertical direction, you can tell whether a given photon is oscillating up-and-down or side-to-side. This is binary, so Alice and Bob could communicate their one-time key by, for example, calling the side to side 0 and the up and down 1.
[3:53] Before I go into the finer details, here is how Alice and Bob make sure that the key they exchange is secure. The polarization is a fundamentally quantum mechanical property which means that a photon can be in a superposition of the two mutually exclusive outcomes - oscillating up-and-down and side-to-side - simultaneously. If there is an eavesdropper, they will need to intercept each photon in turn to measure it. By making the measurement, they will collapse the quantum state of the photon. It is that collapse from a superposition of both states to just one or the other which tells Alice and Bob that an eavesdropper is present. If that's the case, they will throw away the key and try again later, or call the police, or do whatever is necessary until the eavesdropper is gone. When there is no eavesdropper, Alice and Bob can be sure that only they and no one else in the universe knows the key.
[4:46] The simplest approach to Quantum Key Distribution was that of Bennett and Brassard from 1984 or BB84 for short. As I mentioned, Alice can send out photons with a given polarization corresponding to 1s and 0s and Bob can measure them. It's actually quite easy to create photons with a given polarization. Many sunglasses or optical filters work by letting through light of one polarization and filtering out all the rest. Every time a photon goes through your polarizing sunglasses, you are effectively measuring it in a quantum mechanical sense. There is more sophisticated and precise equipment to do this too, of course, but it's relatively cheap. Making the quantum state of a photon into a superposition of vertical and horizontal polarizations is also quite easy: simply turn the emitter of photons 45° on its side.
[5:41] Relative to Bob's vertically aligned measurement system, each photon is now in a combination of both possible outcomes. This is because quantum mechanics fundamentally only allows a measurement to give specific results. Another word for this is discrete in the mathematical sense or quantized. This is what gives quantum physics its name. If Alice's emitter is at 45° clockwise to the vertical, each photon has a 50% chance of being measured horizontally and 50% vertically.
[6:12] Of course, Bob can also tilt his measurement equipment by 45° clockwise and then whatever Alice sends, he would measure correctly 100% of the time. In the original BB84 paper having your equipment in the vertical orientation is referred to as the Rectilinear Basis. In that case a vertical photon corresponds to a 1 and a horizontal photon to a 0. Tilting the equipment by 45° is referred to as the Diagonal Basis where a photon which is oriented like a backslash is a 1 and one that is like a forward slash is a 0.
[6:47] The idea now is that Alice picks a basis at random and sends the data bits - the 1s or 0s. Accordingly Bob also picks a basis at random and measures. On average half the time they will both pick the same basis - the same alignment - and whatever bit Alice sent Bob for sure has accurately received it. If the two bases are different, then the measurement is useless, because whatever Alice sent Bob would get the wrong answer half the time. At this point they don't know which of the bits of data are accurate and which are garbage. They now share the sending and measurement bases publicly. This means that anyone can possibly intercept the information, but that's OK - these are just the bases, not the bits themselves, so it doesn't matter if the whole world knows what they are. Only Alice and Bob know the bits themselves, which can now be used as the one-time key.
[7:43] However, let's now imagine there is an eavesdropper who has measured and resent the photons. Because the eavesdropper doesn't know which basis was used to send out the photons, they will inevitably use the wrong one at some point and mess up the communication between Alice and Bob. Let's say for instance that Alice sent out the backslash photon in the Diagonal Basis. The eavesdropper by chance measures in the Rectilinear Basis and sends out a vertical photon. Bob measures in the diagonal and gets a forward slash. In other words: Alice sent out a 1 and Bob got a 0 because of the eavesdropper.
[8:21] Alice and Bob select some of the bits they think they've shared successfully and compare them publicly. If any of them don't match up, they know an eavesdropper was present. One trick the eavesdropper could imagine is somehow duplicating the photons which Alice sends. Let's say there was some device that could make perfect copies of photons passing through it. Then the eavesdropper could siphon off the copied photons and measure them without Bob knowing. However, there is What's called the no-cloning theorem in quantum mechanics which strictly prohibits this. As a result, an eavesdropper cannot measure the photons without disturbing them. Either Alice and Bob successfully share their one-time key or they know that someone out there is listening. The BB84 approach has been successfully demonstrated in a lab and even used to communicate with a satellite. In particular, a team in China made a secure link to the satellite in one part of its orbit and then a team in Austria did so later on in the orbit. The
[9:22] fact that it is possible to communicate in this way through space means that it can be done between parties anywhere on Earth. communication in this way through fiber optics is also possible. This opens the possibility of a Quantum Internet where keys could be distributed all over the world. The nature of this method means that even if you had a network with multiple bad actors out there to spy on you, it would always be possible to at least detect them. The worst they could do is a denial of service attack - stopping you from communicating, but they could not secretly read your messages. A more elegant way to distribute a key is the method of Ekert from 1991 or E91 for short. This uses pairs of photons which are what is called "entangled". In short, this means that measuring one affects the other even if they are many kilometers apart.
[10:12] In E91 Alice and Bob each receive one of a pair of photons in what is called the Bell singlet state. Alice can get a result of 0 or 1 at random with equal probability, but whatever she measures Bob will get the opposite as long as he measures in the same basis or same orientation. This is a rather complicated quantum effect, but it has been shown that a measurement Alice makes on her photon affects the photon of Bob or vice versa. Strange as it would seem, the act of measuring one photon seems to pop the polarization of the other into being. According to our best understanding, the outcome of the first measurement is also totally random and cannot be predicted until it is made.
[10:54] As before, Alice and Bob will measure their photons either in the Rectilinear or Diagonal Bases at random. Some of the time they will measure in the same bases and some of the time in different ones. They share their measurement bases after the fact and use the times when they happen to measure in the same basis to set up a one-time key. The key is random due to the quantum nature of entangled photons. If an eavesdropper intercepted and resent the photon going to Bob, it would no longer be entangled with the one going to Alice, which can be detected. I won't go into the math, but each of them actually has three or more ways to orient their measuring devices. They use the times when the bases were not aligned to calculate how correlated the measurements are. If they are not correlated in a certain way, the photons are not arriving entangled and hence there is an eavesdropper. This method has also been shown to work in the lab and over long distances Everything I've said can apply to other subatomic particles like electrons or even molecules, but photons
[11:56] are the most practical choice. Photons are easy to generate with a commercial laser and also easy to detect. They automatically move at the speed of light. They can travel both in a vacuum and in the atmosphere. If you are familiar with quantum physics, the principles behind the methods I described should be straightforward. If you aren't, I recommend the textbook by Griffiths and Schroeter. If you would like a full explanation from me, I'm afraid you will need to hire me to give a 20 lecture course on the subject, because it can get quite involved. Thank you for watching.
在 Vidleaf 工作台中開啟
搜尋逐字稿、選取行、複製帶時間戳的引文、翻譯。
署名
《量子金鑰分發的原理(BB84 & E91)》,作者 Improbable Matter(https://www.youtube.com/@improbablematter),依 CC BY 4.0 授權(https://creativecommons.org/licenses/by/4.0/)。來源影片:https://www.youtube.com/watch?v=V3WzH2up7Os。本頁是該影片的文字逐字稿,並加入了段落分隔與時間戳記;創作者與 Vidleaf 無隸屬關係,亦不為其背書。Vidleaf 加入了 AI 標點與 AI 生成的摘要;原始措辭仍可於本頁取得。
你是創作者或權利持有人嗎?請求更正或移除:copyright@vidleaf.app(參見 關於這些頁面)。
最後更新