# 3.Asymmetric - Key Cryptography

**URL:** <https://discuss.hashpire.io/t/3-asymmetric-key-cryptography/298>\
**Category:** กระดานเนื้อหา 📄\
**Tags:** final-review\
**Created:** [July 25, 2022, 3:12am UTC](https://discuss.hashpire.io/t/3-asymmetric-key-cryptography/298 "2022-07-25T03:12:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Namtan](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/namtan/32/23_2.png) [@Namtan](https://discuss.hashpire.io/u/Namtan)\
**Post date:** [July 25, 2022, 3:12am UTC](https://discuss.hashpire.io/t/3-asymmetric-key-cryptography/298/1 "2022-07-25T03:12:47Z")

</div>

![Cryptography-MD-EP3-1](https://discuss.hashpire.io/uploads/default/original/1X/c88ac4dd1e4b922fc44d97fe70f3a4bd2103d529.png)

 ![Cryptography-MD-EP3-2](https://discuss.hashpire.io/uploads/default/original/1X/9c08e1f9e8daf607541f2f2eae71fcd84521f74e.png)

 ![Cryptography-MD-EP3-3](https://discuss.hashpire.io/uploads/default/original/1X/8cc464d844a57a3ae202e9447baafe63c7cda8cf.png)

 ![Cryptography-MD-EP3-4](https://discuss.hashpire.io/uploads/default/original/1X/036ad917df88343a6760b23600b2cf4bf242d778.png)

 ![Cryptography-MD-EP3-5](https://discuss.hashpire.io/uploads/default/original/1X/312582f2bc68270d1da5ca9fcb26088763384dae.png)

1. Public - Key Cryptography

จาก EP ที่เเล้วเราได้มีการพูดถึง Symmetric - Key Cryptography หรือการเข้ารหัสข้อมูลด้วย “กุญแจเดี่ยว” ไปแล้ว ใน EP นี้เราจะมาพูดถึงการเข้ารหัสอีกรูปแบบที่ถูกพัฒนาขึ้นมา และสามารถแก้ปัญหาที่เกิดขึ้นจากการเข้ารหัสแบบแรกได้ นั่นก็คือ การเข้ารหัสแบบ “Asymmetric - Key Cryptography”

Asymmetric - Key Cryptography หรือที่รู้จักกันในชื่อ “Public - Key Cryptography” คือ ระบบเข้ารหัสแบบกุญแจอสมมาตร หรือการเข้ารหัสข้อมูลด้วย “กุญแจคู่ (Key Pair)” ในการเข้ารหัสจะประกอบไปด้วย กุญแจส่วนตัว (Private Key) และกุญแจสาธารณะ (Public Key) โดยหลักการทำงาน คือ เราจะใช้กุญแจส่วนตัวในการเข้ารหัส และจะใช้กุญแจสาธารณะในการถอดรหัส สำหรับการเข้ารหัสและถอดรหัสด้วยกุญแจคู่ จะใช้ฟังก์ชันทางคณิตศาสตร์เข้ามาช่วย โดยที่ฟังก์ชันทางคณิตศาสตร์ที่นำมาใช้ จะต้องได้รับการพิสูจน์แล้วว่าจะมีเฉพาะกุญแจคู่ของมันเท่านั้นที่จะสามารถถอดรหัสได้ ไม่สามารถนำกุญแจคู่อื่นมาถอดรหัสได้อย่างเด็ดขาด

 ![Public - Key Cryptography](https://discuss.hashpire.io/uploads/default/original/1X/cf1239b777652a223556ed952480f4c7d7c8c769.png)

ในระบบ Public - Key Cryptography บุคคลใดก็ตาม สามารถที่จะเข้ารหัสข้อมูลโดยใช้ กุญแจสาธารณะ (Public Key) ของผู้รับที่ต้องการได้ แต่ข้อมูลที่เข้ารหัสนั้นสามารถถอดรหัสได้ด้วยกุญแจส่วนตัว (Private Key) ของผู้รับ เท่านั้น ดังนั้นการรักษาความปลอดภัยที่มีประสิทธิภาพ คือ ต้องเก็บรักษากุญแจส่วนตัว (Private Key) อย่างดีห้ามให้ผู้อื่นรู้เด็ดขาด ส่วนกุญแจสาธารณะ (Public Key) สามารถแจกจ่ายได้อย่างเปิดเผยโดยไม่กระทบต่อความปลอดภัย  
นอกเหนือจากการเข้ารหัสแล้วระบบ Public - Key Cryptography ยังเป็นอัลกอริทึมพื้นฐานในการรักษาความปลอดภัยของระบบ Modern Cryptography ซึ่งเป็นส่วนช่วยในการรับรองความถูกต้องของข้อมูล (Authentication) การรักษาความสมบูรณ์ของข้อมูล(Integrity) การรักษาความลับของข้อมูล (Confidentiality) และการห้ามปฏิเสธความรับผิดชอบ (Non-repudiation) ซึ่งหมายถึง การป้องกันไม่ให้บุคคลผู้ส่งปฏิเสธว่าตนไม่ได้ส่งข้อมูลอิเล็กทรอนิกส์ ซึ่งในปัจจุบันมีอัลกอริทึมมากมายที่นำ Public - Key Cryptography ไปประยุกต์ใช้ เช่น Diffie-Hellman key exchange, DSA, RSA, ElGamal, Elliptic - Curve Cryptography (ECC) เป็นต้น

ข้อดี คือ สามารถที่จะแชร์กุญแจให้กับบุคคลอื่นได้ โดยไม่ต้องกังวลเกี่ยวกับปัญหาการถูกขโมยกุญแจเหมือนการเข้ารหัสแบบกุญแจสมมาตร (Symmetric Key Cryptography) เนื่องจากเรามีกุญแจสาธารณะ (Public Key) ที่สามารถเปิดเผยให้บุคคลอื่นรู้ได้ แต่บุคคลอื่นไม่สามารถใช้ในการถอดรหัสได้ เพราะการถอดรหัสจะต้องใช้ กุญแจส่วนตัว (Private Key)

ข้อเสีย คือ การเข้าและถอดรหัสทำได้ช้าเมื่อเทียบกับการเข้ารหัสแบบกุญแจสมมาตร ( Symmetric - Key Cryptography) และเนื่องจากความช้า จึงส่งผลให้ระบบนี้ไม่เหมาะกับการเข้ารหัสข้อมูลขนาดใหญ่ และไม่ตอบโจทย์สำหรับวัตถุประสงค์หลายอย่างของ Cryptosystems ในปัจจุบัน

การเข้ารหัสแบบกุญแจอสมมาตร (Public - Key Cryptography) เป็นเทคนิคการเข้ารหัสที่ใช้กันอย่างแพร่หลายในการเข้ารหัสในยุคสมัยใหม่ ( Modern Cryptography) มีแอปพลิเคชันมากมายนอกเหนือจากการเข้ารหัส ยังถูกใช้เป็นองค์ประกอบหลายอย่างใน Blockchain อีกด้วย

Reference

> **[Public-key cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography)**
>
> Public-key cryptography, or asymmetric cryptography, is a cryptographic system that uses pairs of keys. Each pair consists of a public key (which may be known to others) and a private key (which may not be known by anyone except the owner). The generation of such key pairs depends on cryptographic algorithms which are based on mathematical problems termed one-way functions. Effective security requires keeping the private key private; the public key can be openly distributed without compromisin

> **[บทนำเกี่ยวกับเทคโนโลยีความปลอดภัยของข้อมูล | Thailand National Root...](https://www.nrca.go.th/content/02-1.html#:~:text=%E0%B8%A3%E0%B8%B0%E0%B8%9A%E0%B8%9A%E0%B8%A3%E0%B8%AB%E0%B8%B1%E0%B8%AA%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%AA%E0%B8%A1%E0%B8%A1%E0%B8%B2%E0%B8%95%E0%B8%A3%20(Symmetric-key%20Cryptography)%20%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%A3%E0%B8%B0%E0%B8%9A%E0%B8%9A,%E0%B8%A3%E0%B8%B9%E0%B8%9B%E0%B8%A3%E0%B8%AB%E0%B8%B1%E0%B8%AA%E0%B8%84%E0%B8%AD%E0%B8%A1%E0%B8%9E%E0%B8%B4%E0%B8%A7%E0%B9%80%E0%B8%95%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%99%E0%B8%B5%E0%B9%89%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99)**
>
> nrca,สพธอ., องค์การมหาชน, ETDA, Public Organization, MDE

* * *

Outline

- Public - Key Cryptography คืออะไร
- กระบวนการทำงานของ Public - Key Cryptography
- ตัวอย่างการใช้ Public - Key Cryptography
- ข้อดี-ข้อเสีย

---

<div class="post-metadata">

**Author:** ![Pantitas](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/pantitas/32/4_2.png) [@Pantitas](https://discuss.hashpire.io/u/Pantitas)\
**Post date:** [August 1, 2022, 5:29am UTC](https://discuss.hashpire.io/t/3-asymmetric-key-cryptography/298/2 "2022-08-01T05:29:44Z")

</div>

## Artwork concept

จะทำเป็น story มีทั้งหมด 6 aw

- 
  1. Cover (ยังไม่แน่ใจรูปแบบ)

- 
  1. Public - Key Cryptography คืออะไร (What is it)

- 
  1. การทำงานของ Public - Key Cryptography (How it work)

- 
  1. ข้อดี-ข้อเสีย (Pros & Cons)

- 
  1. สรุป (paragraph สุดท้าย สรุปเกี่ยวกับบทความ)

- 
  1. ending

---

<div class="post-metadata">

**Author:** ![Pantitas](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/pantitas/32/4_2.png) [@Pantitas](https://discuss.hashpire.io/u/Pantitas)\
**Post date:** [August 3, 2022, 6:19am UTC](https://discuss.hashpire.io/t/3-asymmetric-key-cryptography/298/3 "2022-08-03T06:19:08Z")

</div>

> [@Namtan](#):
>
> และนอกเหนือจากการเข้ารหัสแล้ว ยังรวมถึงแอปพลิเคชันและโปรโตคอลที่รับประกันการรักษาความลับ ความถูกต้อง และไม่สามารถปฏิเสธได้ของการสื่อสารทางอิเล็กทรอนิกส์และการจัดเก็บข้อมูล

ส่วนตรงนี้ปันว่าอ่านแล้ว งง ค่ะ ไม่ค่อยเข้าใจ “ไม่สามารถปฏิเสธได้” อเพระาส่วนนี้เลยคิดว่าไม่แน่ใจว่าประโยคข้างต้นหมายถึงอะไรค่ะ

---

<div class="post-metadata">

**Author:** ![Pantitas](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/pantitas/32/4_2.png) [@Pantitas](https://discuss.hashpire.io/u/Pantitas)\
**Post date:** [August 3, 2022, 6:57am UTC](https://discuss.hashpire.io/t/3-asymmetric-key-cryptography/298/4 "2022-08-03T06:57:36Z")

</div>

> [@Namtan](#):
>
> ข้อดี คือการบริหารจัดการกุญแจ (Key Management) ทำได้ดีและเป็นระบบ

ทำได้ดี อาจจะดูไม่เครีย ค่ะว่า ดี อย่างไร ปันแนะนำว่าให้รวบเป็นประโยคให้สวยขึ้นค่ะ อย่าง

การบริหารจัดการกุญแจ (Key Management) สามารถทำได้อย่างเป็นระบบ เนื่องจาก… → คิดว่าส่วนของเนื่องจากจะไปช่วยขยายเองว่าทำได้แย่างเป็นระบบ คือย่างไร

> [@Namtan](#):
>
> ผู้ใช้แต่ละคนต้องการกุญแจ 1 คู่ (กุญแจส่วนตัวและกุญแจสาธารณะ)

ส่วนตัวคิดว่าน่าจะต้องอธิบายเพิ่มค่ะว่า การใช้ 1 คู่แล้วช่วยให้การ manage key ดีขึ้นยังไงค่ะ

* * *

> [@Namtan](#):
>
> นอกเหนือจากการเข้ารหัสแล้ว ยังรวมถึงแอปพลิเคชันและโปรโตคอลที่รับประกันการรักษาความลับ ความถูกต้อง และไม่สามารถปฏิเสธได้ของการสื่อสารทางอิเล็กทรอนิกส์และการจัดเก็บข้อมูล

> Public key algorithms are fundamental security primitives in modern [cryptosystems](https://en.m.wikipedia.org/wiki/Cryptosystem), including applications and protocols which offer assurance of the confidentiality, authenticity and [non-repudiability](https://en.m.wikipedia.org/wiki/Non-repudiation) of electronic communications and data storage.

→ Public key เป็นอัลกอริทึมพื้นฐานในการรักษาความปลอดภัยของระบบ Modern Cryptography ซึ่งเป็นส่วนช่วยในการจัดเก็บความลับของข้อมูล ตรวจสอบความถูกต้องของข้อมูล และรวมไปถึงการป้องกันการเก็บข้อมูลซ้ำซาก

ถ้าจากที่อ่านแล้วลองแปร ที่ปันเข้าใจจะประมาณนี้ค่ะ
