การเข้ารหัส
แนะนำใหม่
10:32
การส่งข้อมูล
คุณส่งรูปภาพให้เพื่อนที่อยู่อีกฟากโลก มันไม่ได้เดินทางในรูปแบบก้อนเดียว แต่ถูกแบ่งออกเป็นแพ็กเก็ตเล็กๆ จำนวนนับร้อยๆ แพ็กเก็ต โดยแต่ละแพ็กเก็ตจะมีป้ายกำกับ…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| Encryption/enˈkrɪpʃn/ | |
| data/ˈdeɪtə/ | Recorded facts, observations or values used for analysis or processing. |
| intercepted/ˌɪntəˈseptɪd/ | การดักจับ |
| plaintext/ˈpleɪntekst/ | ข้อความต้นฉบับ |
| ciphertext/ˈsaɪfətekst/ | ข้อความรหัส |
| symmetric/sɪˈmetrɪk/ | แบบสมมาตร |
| asymmetric/ˌeɪsɪˈmetrɪk/ | แบบอสมมาตร |
| key/kiː/ | กุญแจ |
| Symmetric encryption/sɪˈmetrɪk enˈkrɪpʃn/ | Encryption in which the same secret key is used to encrypt and decrypt data. |
| secret key | |
| public key/ˈpʌblɪk kiː/ | กุญแจสาธารณะ |
| private key/ˈpraɪvət kiː/ | กุญแจส่วนตัว |
| Asymmetric encryption/ˌeɪsɪˈmetrɪk enˈkrɪpʃn/ | |
| internet/ˈɪntənet/ |
การรบกวนข้อความ (Scrambling a message)
- Encryption รบกวนข้อมูลให้ไม่สามารถอ่านได้หากถูก intercepted.
- ข้อมูลที่อ่านได้คือ plaintext; ข้อมูลที่ถูกรบกวนคือ ciphertext.
- มีสองประเภท: symmetric และ asymmetric.
Encryption ทำอะไร (และไม่ได้ทำอะไร)
- Encryption ใช้ key เพื่อแปลง plaintext เป็น ciphertext และย้อนกลับเพื่อ decrypt
- มัน ไม่ ป้องกันไม่ให้ข้อมูลถูก intercept แต่เพียงแต่ป้องกันไม่ให้ข้อมูลที่ intercept แล้วถูก เข้าใจ

Symmetric ใช้ key เดียวกัน; asymmetric ใช้ public key สำหรับ encrypt และ private key สำหรับ decrypt.

What does encryption achieve?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Encryption scrambles data so interception is useless — it does not prevent the interception itself.
การเข้ารหัสแบบสมมาตร
- Symmetric encryption ใช้ key เดียว ทั้งสำหรับ encrypt และ decrypt
- ผู้ส่งและผู้รับต้อง แชร์ secret key เดียวกันนี้
- ความเสี่ยง: ตัว key เองอาจถูกขโมยระหว่างการแชร์

Simplex เป็นทางเดียวเท่านั้น; half-duplex เป็นสองทางแต่ทีละทาง; full-duplex เป็นสองทางพร้อมกัน.

A shift cipher (symmetric key)
Caesar's cipher shifts every letter forward by a fixed key. The SAME key encrypts and decrypts — that is what symmetric means. Slide the key and try to read it without knowing the shift.
Match each encryption term to its meaning.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Plaintext → (key) → ciphertext; symmetric shares one key, asymmetric uses a public/private pair.
Symmetric encryption uses:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Symmetric uses one secret key that both sides must share — the risk is that key being stolen.
การเข้ารหัสแบบอสมมาตร
- Asymmetric encryption ใช้ สอง keys: public key (ใครก็มีได้ ใช้สำหรับ encrypt) และ private key (เก็บเป็นความลับ ใช้สำหรับ decrypt).
- ข้อมูลที่ถูก encrypt ด้วย public key สามารถ decrypt ได้ด้วย private key ที่ตรงกันเท่านั้น
- Key ความลับไม่ต้องถูกแชร์เลย จึง ปลอดภัยกว่า แบบ symmetric
In asymmetric encryption, data is encrypted with the ____ key and decrypted with the ____ key.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The public key encrypts; only the matching private key can decrypt — so the secret key is never shared.
Asymmetric encryption needs the private key to be sent to everyone who wants to encrypt data for you.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
False. Only the public key is shared; senders encrypt with it, and the private key that decrypts never leaves the owner. Symmetric encryption is the kind where the one key must be shared.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Worked example: Ana writes to Ben
Ana wants to send Ben a secret message using asymmetric encryption. Which key is used at each stage, and why can't Eve, who intercepts it, read it?
- Ben gives his public key to anyone. Ana encrypts the plaintext with Ben's public key, and the ciphertext travels across the internet 互联网. Ben decrypts it with his private key, which never leaves his computer.
- Eve can copy the ciphertext, and she may even have Ben's public key, but the public key cannot decrypt. Without Ben's private key the message stays unreadable.

Ben now replies to Ana. Which key should he use to encrypt his reply?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Encrypt with the receiver's public key; only the receiver's private key can then decrypt it.
Encrypting a file stops a hacker from intercepting it.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The hacker can still intercept it, but cannot understand it without the key.
คุณเข้าใจแล้ว
- encryption ทำให้ข้อมูลที่ intercept อ่าน ไม่เป็น (แต่ไม่ป้องกันการ intercept)
- plaintext → ciphertext โดยใช้ key
- symmetric = key เดียวที่แชร์กัน (ความเสี่ยง: การแชร์); asymmetric = public key encrypt, private key decrypt
- asymmetric ปลอดภัยกว่าเพราะ key ความลับไม่เคยถูกแชร์
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้