From the Caesar cipher to the Enigma machineFrom the Caesar cipher to the Enigma machine
Hơn 2.000 năm, con người chơi trò mèo vờn chuột giữa người giấu tin và người phá mã. Vũ khí bí mật của bên thắng luôn là toán học.For more than 2,000 years code-makers and code-breakers have played cat and mouse. The winners’ secret weapon has always been mathematics.
Mật mã Caesar
Tương truyền Julius Caesar mã hóa thư bằng cách dịch mỗi chữ cái đi 3 vị trí trong bảng chữ cái: A → D, B → E, C → F… Thông điệp “TOAN” thành “WRDQ”.
Cách này rất dễ phá: chỉ có 25 cách dịch, thử hết là xong.
Phân tích tần suất
Người ta cải tiến bằng cách thay mỗi chữ cái bằng một chữ cái bất kì (có tới khoảng $4 \cdot 10^{26}$ cách thay với 26 chữ cái). Nhưng vào thế kỷ 9, nhà bác học Ả Rập Al-Kindi đã tìm ra điểm yếu: trong mọi ngôn ngữ, một số chữ cái xuất hiện nhiều hơn hẳn (trong tiếng Anh là E, T, A). Đếm tần suất các kí hiệu trong bản mã, ta đoán được chữ nào thay cho chữ nào. Đây là một trong những ứng dụng đầu tiên của thống kê.
Enigma
Trong Thế chiến II, quân đội Đức dùng máy Enigma: mỗi lần gõ một phím, các rô-to xoay đi và thay đổi toàn bộ cách mã hóa. Cùng một chữ cái gõ hai lần cho ra hai chữ khác nhau. Số cách thiết lập máy lên tới hàng trăm triệu tỉ tỉ, và được đổi mỗi ngày.
Nhưng Enigma có một điểm yếu toán học: không chữ cái nào được mã hóa thành chính nó. Kết hợp với việc đoán trước một số cụm từ hay xuất hiện (như bản tin thời tiết buổi sáng), đội ngũ ở Bletchley Park — trong đó có Alan Turing — chế tạo cỗ máy “Bombe” để loại nhanh hàng triệu khả năng sai.
Bài học: một hệ mật mã an toàn không phải vì giữ bí mật cách hoạt động, mà vì bài toán phá mã quá khó về mặt toán học. Đó chính là nguyên lí của mật mã hiện đại — xem số nguyên tố bảo vệ tài khoản ngân hàng.
The Caesar cipher
Julius Caesar is said to have encrypted letters by shifting each letter 3 places along the alphabet: A → D, B → E, C → F… The message “MATH” becomes “PDWK”.
This is very easy to break: there are only 25 possible shifts — just try them all.
Frequency analysis
An improvement is to replace each letter with any other letter (about $4 \cdot 10^{26}$ possible substitutions with 26 letters). But in the 9th century the Arab scholar Al-Kindi found the weakness: in every language some letters are much more common than others (in English, E, T, A). Count how often each symbol appears in the ciphertext and you can guess which letter stands for which. This was one of the first applications of statistics.
Enigma
In World War II the German military used the Enigma machine: with every key press its rotors turned and changed the whole encryption. The same letter typed twice gave two different letters. The number of possible machine settings ran into the hundreds of millions of trillions of trillions, and was changed every day.
But Enigma had a mathematical weakness: no letter was ever encrypted as itself. Combined with guessing phrases that often appeared (like the morning weather report), the team at Bletchley Park — including Alan Turing — built the “Bombe” machine to rule out millions of wrong possibilities quickly.
The lesson: a cipher is secure not because its workings are secret, but because breaking it is mathematically too hard. That is the principle of modern cryptography — see how prime numbers protect your bank account.
Đọc tiếp
Fermat’s Last Theorem: 358 years for one note in a marginFermat’s Last Theorem: 358 years for one note in a margin
Một luật sư nghiệp dư viết vội vài dòng bên lề sách. Ba thế kỷ rưỡi sau, một người đàn ông âm thầm làm việc 7 năm trên gác mái để giải quyết nó.An amateur lawyer scribbled a few lines in a book’s margin. Three and a half centuries later, a man worked secretly for 7 years in his attic to settle it.
Đọc tiếp → Thế giới con số7 phút đọcπ: a 4,000-year chase after a number that never endsπ: a 4,000-year chase after a number that never ends
Từ những tấm đất sét Babylon đến siêu máy tính tính hàng trăm nghìn tỷ chữ số — câu chuyện về con số nổi tiếng nhất hành tinh.From Babylonian clay tablets to supercomputers computing hundreds of trillions of digits — the story of the most famous number on the planet.
Đọc tiếp → Lịch sử toán học6 phút đọcZero: how “nothing” became the greatest inventionZero: how “nothing” became the greatest invention
Không có số 0, sẽ không có hệ thập phân, không có đại số, không có máy tính. Vậy mà loài người mất hàng nghìn năm mới dám coi "không có gì" là một con số.Without zero there would be no decimal system, no algebra, no computers. Yet it took humanity thousands of years to dare to treat “nothing” as a number.
Đọc tiếp →
Bình luận (0)
Chưa có bình luận nào. Hãy là người đầu tiên!