Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ความปลอดภัยเครือข่าย

Public Key Cryptography: การเข้ารหัสด้วย Public Key และการใช้งาน

คีย์ไหนใช้เข้ารหัสใน Public Key Cryptography

เข้ารหัสด้วย Public Key ถอดรหัสด้วย Private Key ไม่สามารถคำนวณ Private Key จาก Public Key ได้

Public Key Encryption ปลอดภัยหรือไม่

ปลอดภัยต่อโจมตีทั่วไป แต่องค์กรใหญ่ (ธนาคาร) กังวล Chosen-Ciphertext Attacks (CCAs) ที่ต้องการตัวอย่างการถอดรหัส

คีย์ไหนใช้ Lock/Encrypt ข้อความ

Public Key ใช้ Encrypt (Lock) ให้เฉพาะเจ้าของ Private Key ถอดรหัส (Unlock) ได้ Private Key เป็น Secret Key ของผู้สร้างเท่านั้น

Public Key ใน Encryption คืออะไร

มีคีย์ 2 ตัว: Public Key (สาธารณะ) และ Private Key (ส่วนตัว) เข้ารหัสด้วย Public Key ผ่านการดำเนินการกำหนดไว้หลายรอบ สร้าง Pseudo-random Number จากข้อมูลเป้าหมาย

Public Key Encryption ใช้ที่ไหน

ส่งข้อมูลละเอียดอ่อนผ่านเครือข่ายไม่ปลอดภัย (อินเทอร์เน็ต) ใช้ RSA Algorithm (Rivest-Shamir-Adleman)

ใช้ Public หรือ Private Key เข้ารหัส

ใช้ Public Key เท่านั้น เพราะ Public Key เปิดเผยได้ ถอดรหัสได้เฉพาะเจ้าของ Private Key

ทำไม Public Key Encryption จึงปลอดภัย

ผู้ใช้ไม่ต้องส่ง/เปิดเผย Private Key ใครเลย ลดโอกาส Cyber Criminal ขโมย Secret Key ระหว่างส่งข้อมูล

Public Key Encryption แฮกได้หรือไม่

ได้ แตยากมาก ต้องแตก Cryptography/Hash Algorithm ที่สร้าง Key Pair

Public Key Encryption ปกป้องข้อมูลอย่างไร

Web Server มี Key Pair สร้าง Secure Channel ผ่าน "SSL Handshake" ส่ง Public Key ให้ Client Client Encrypt ข้อความที่ถอดรหัสได้เฉพาะ Private Key คู่

รับประกัน Confidentiality อย่างไร

เข้ารหัสด้วยคีย์หนึ่ง ถอดรหัสต้องอีกคีย์ Sender ใช้ Public Key ของ Recipient Encrypt → Recipient ใช้ Private Key ของตัวเอง Decrypt

ตัวอย่าง Public Key Encryption

Public Key Register เก็บ Public Key ทุกคน B Encrypt ด้วย Public Key ของ C → C Decrypt ด้วย Private Key ของ C (เฉพาะ C เท่านั้น)