# Digital Signature

**URL:** <https://discuss.hashpire.io/t/digital-signature/471>\
**Category:** Content Board\
**Tags:** beginner, article\
**Created:** [October 20, 2022, 3:40am UTC](https://discuss.hashpire.io/t/digital-signature/471 "2022-10-20T03:40:30Z")\
**Posts on this page:** 7\
**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:** [October 20, 2022, 3:40am UTC](https://discuss.hashpire.io/t/digital-signature/471/1 "2022-10-20T03:40:30Z")

</div>

# Planning

* * *

## Outline-text

### ชื่อหัวข้อที่จะนำเสนอ

- Digital Signature คืออะไร

### โครงสร้างของเนื้อหา

1. จำนวนหัวข้อทั้งหมดที่จะนำเสนอ  
3 หัวข้อ
2. แต่ละหัวข้อจะนำเสนออะไร
  - หัวข้อที่ 1 : Digital signature คืออะไร
  - หัวข้อที่ 2 : ขั้นตอนในการ sign signature (การเซ็น) แบ่งเป็น deterministic \> ทุกครั้งที่เซ็นลายเซนต์จะเหมือนกัน / non-deterministic \> ทุกครั้งที่เซ็นจะไม่เหมือนกัน (เหมือนเวลาเราเซ็นลายเซ็นกันปกติทั่วไป)
  - หัวข้อที่ 3 : ขั้นตอนในการ Verify Signature (การเช็ค)

### ประเด็นสำคัญของบทความ

- หลักการทำงาน Digital signature

### สิ่งที่ผู้อ่านจะได้รับจากบทความ

- เข้าใจการทำงานของ Digital signature

* * *

## Outline-graphic

### รูปแบบของกราฟฟิค + โครงสร้าง

- 

* * *

คำถามที่รบกวนให้ Reviewer ช่วยตอบค่ะ

#### 1. ต้องการรู้ประเด็นไหนเพิ่มเติมไหม เพราะอะไร

#### 2. คิดว่าเรียงลำดับการนำเสนอได้ดีรึยัง ถ้าไม่ดี มีไอเดียอย่างไร

#### 3. มีประเด็นไหนควรตัดทิ้งไหม เพราะอะไร

* * *

# 📝 Content text + graphic

Digital Signature เปรียบเสมือน “ลายนิ้วมือ” ของคนเรา แต่อยู่ในรูปแบบอิเล็กทรอนิกส์ ใช้ในการตรวจสอบความถูกต้องของข้อความหรือเอกสารในรูปแบบดิจิทัล ซึ่งลายเซ็นอิเล็กทรอนิกส์ที่ถูกต้องและสมบูรณ์ ต้องเป็นไปตามข้อกำหนดดังนี้

1. มีความถูกต้อง ( Authenticity)
2. มีความสมบูรณ์ (Integrity)
3. เมื่อเราทำการเซ็นไปแล้วจะไม่สามารถปฏิเสธความรับผิดชอบได้ (Non-Repudiation)

ขั้นตอนในการทำงานของ Digital Signature แบ่งออกเป็น 2 ส่วน คือ

1. ขั้นตอนในการเซ็น Digital Signature  
คือ การนำเอาข้อความ (Message) และ คีย์ส่วนตัว (Private Key) ไปเข้ากระบวนการ Signing Algorithm จากนั้นเราจะได้ Digital Signature ออกมา

2. ขั้นตอนในการตรวจสอบ Digital Signature  
คือ การนำเอา 1. ข้อความ (Message) 2. ลายเซ็นดิจิทัล (Digital Signature) และ 3. คีย์สาธารณะ (Public Key) ไปเข้ากระบวนการ Signature Verifying Algorithm ผลลัพธ์ที่ได้ที่ได้ออกมาจะเป็นค่า ถูก/ผิด (True/False) ซึ่งหากเป็น True แสดงว่าข้อมูลนี้ถูกต้องและไม่ได้ถูกเปลี่ยนแปลงระหว่างการส่ง แต่ถ้าหากเป็น False แสดงว่า ข้อมูลนี้ไม่ถูกต้องและอาจมีการเปลี่ยนแปลงระหว่างการส่ง

# Reference

> [@Blockchain เข้าใจง่าย](https://discuss.hashpire.io/t/blockchain/482):
>

> [@Digital signature คืออะไร](https://discuss.hashpire.io/t/digital-signature/481):
>

> [@What is a Digital Signature & How Do I Create One?](https://discuss.hashpire.io/t/what-is-a-digital-signature-how-do-i-create-one/528):
>

---

<div class="post-metadata">

**Author:** ![supanut](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/supanut/32/22_2.png) [@supanut](https://discuss.hashpire.io/u/supanut)\
**Post date:** [November 15, 2022, 9:10am UTC](https://discuss.hashpire.io/t/digital-signature/471/2 "2022-11-15T09:10:56Z")

</div>

t-draft ok kub

---

<div class="post-metadata">

**Author:** ![supanut](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/supanut/32/22_2.png) [@supanut](https://discuss.hashpire.io/u/supanut)\
**Post date:** [November 29, 2022, 5:31am UTC](https://discuss.hashpire.io/t/digital-signature/471/3 "2022-11-29T05:31:09Z")

</div>

@Namtan

> [@Namtan](#):
>
> Authentication

- Authentication หรือ authenticity ครับ ?

> [@Namtan](#):
>
> Data Integrity หรือ ความสมบูรณ์

- แค่ Integrity ก็พอครับ

> [@Namtan](#):
>
> ต้องเป็นไปตามข้อกำหนด

- ลายเซ็นต์มันจะต้องมีความถูกต้องและสมบูรณ์ใช่ไหมครับ ที่ต้องการจะสื่อ รบกวนแก้และเขียนให้กระชับเข้าใจง่ายกว่านี้ครับ วงเล็บภาษาอังกฤษดีกว่า เช่น authenticity (ความถูกต้อง)

> [@Namtan](#):
>
> จะได้ข้อมูลที่ถูกเข้ารหัสโดย Digital Signature ออกมา

- มันไม่ใช่ “ได้ข้อมูลที่ถูกเข้ารหัสโดย Digital Signature” นะครับ ผลลัพธ์ที่ได้คือมันจะได้ “Digital Signature” นะครับ

ลองอ่านตรงนี้เพิ่มครับ จากภาพตัวอย่างใน [wiki](https://en.wikipedia.org/wiki/Digital_signature)

> Alice signs a message—“Hello Bob!”—by appending a signature computed from the message and her private key. Bob receives both the message and signature. He uses Alice’s public key to verify the authenticity of the signed message.  
> Blockquote

- จะเห็นว่าเราเอาข้อความไปสร้าง Digital Signature ด้วย private key
- เราส่ง ข้อความและ Digital Signature ไปให้คนรับ
- คนรับใช้ public key ในการถอดรหัส Digital Signature เพื่อตรวจสอบความถูกต้องของลายเซ็นต์ (ถ้าลายเซ็นต์ถูกแสดงว่าข้อมูลที่ส่งมามันน่าเชื่อถือ หลักการคล้ายๆ เวลาเราเซ็นต์สำเนาบัตรประชาชน)

> [@Namtan](#):
>
> 1. แยก Signature ออกมา จากนั้นนำ Signature ไปถอดรหัสด้วย Public Key ของผู้ส่ง จะได้ค่า Hash เดิมออกมา

- เขียนให้ชัดเจนครับ แยก Digital Signature ออกมาจากข้อมูล

> [@Namtan](#):
>
> นำข้อมูลไปเข้า Hash Algorithm ซึ่งจะได้ค่า Hash ออกมาเช่นกัน และนำค่า Hash จากข้อที่ 1 มาเปรียบเทียบกัน ถ้าค่า Hash ทั้งสองเท่ากัน ก็ยืนยันได้ว่า ข้อมูลไม่ได้ถูกเปลี่ยนแปลงระหว่างการส่ง

- ตรงนี้ปรับใหม่เขียนให้กระชับเข้าใจง่าย ลองไปเรียบเรียงมาใหม่ครับ (หลักๆ คือเรากำลังจะบอกว่า นำ hash ของข้อมูล เทียบกับ hash ที่ถอดรหัสได้จาก Digital Signature มาเทียบกัน ถ้าเหมือนกันแสดงว่า Digital Signature ถูกส่งมาจากคนที่เราเชื่อถือได้ ข้อมูลนี้ถูกต้อง)

---

<div class="post-metadata">

**Author:** ![supanut](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/supanut/32/22_2.png) [@supanut](https://discuss.hashpire.io/u/supanut)\
**Post date:** [December 2, 2022, 7:07am UTC](https://discuss.hashpire.io/t/digital-signature/471/4 "2022-12-02T07:07:06Z")

</div>

@Namtan

> [@Namtan](#):
>
> 1. ไม่สามารถปฏิเสธความรับผิดชอบได้ (Non-Repudiation)

อันนี้หมายถึงยังไงนะครับ มี ref ไหม อธิบายพี่เพิ่มเติมหน่อยอ่านแล้วไม่ค่อยเข้าใจตรงนี้

---

<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:** [December 2, 2022, 7:21am UTC](https://discuss.hashpire.io/t/digital-signature/471/5 "2022-12-02T07:21:22Z")

</div>

หมายถึงว่าถ้าลงลงนามไปแล้วไม่สามารถปฏิเสธความรับผิดชอบได้ เนื่องจาก Digital signature จะได้รับการตรวจสอบกับทุกฝ่าย ดังนั้นผู้ลงนามในข้อความจึงไม่สามารถปฏิเสธความเกี่ยวข้องกับเนื้อหาที่ลงนามได้ค่ะ

### Non-repudiation[[edit](https://en.wikipedia.org/w/index.php?title=Digital_signature&action=edit&section=7)]

[Non-repudiation](https://en.wikipedia.org/wiki/Non-repudiation),[[13]](https://en.wikipedia.org/wiki/Digital_signature#cite_note-Cryptomathic_MajorStandardsDigSig-13) or more specifically non-repudiation of origin, is an important aspect of digital signatures. By this property, an entity that has signed some information cannot at a later time deny having signed it. Similarly, access to the public key only does not enable a fraudulent party to fake a valid signature.

Note that these authentication, non-repudiation etc. properties rely on the secret key _not having been revoked_ prior to its usage. Public revocation of a key-pair is a required ability, else leaked secret keys would continue to implicate the claimed owner of the key-pair. Checking revocation status requires an “online” check; e.g., checking a [certificate revocation list](https://en.wikipedia.org/wiki/Certificate_revocation_list) or via the [Online Certificate Status Protocol](https://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol).[[14]](https://en.wikipedia.org/wiki/Digital_signature#cite_note-CryptomathicDigSigServicesAshiqJA-14) Very roughly this is analogous to a vendor who receives credit-cards first checking online with the credit-card issuer to find if a given card has been reported lost or stolen. Of course, with stolen key pairs, the theft is often discovered only after the secret key’s use, e.g., to sign a bogus certificate for espionage purpose.

---

<div class="post-metadata">

**Author:** ![anakornk](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/anakornk/32/3_2.png) [@anakornk](https://discuss.hashpire.io/u/anakornk)\
**Post date:** [December 7, 2022, 8:52am UTC](https://discuss.hashpire.io/t/digital-signature/471/6 "2022-12-07T08:52:49Z")

</div>

![image](https://discuss.hashpire.io/uploads/default/original/2X/a/a8c2861fc2f460cc49302c8c8b99c05731538024.png)

---

<div class="post-metadata">

**Author:** ![anakornk](https://discuss.hashpire.io/user_avatar/discuss.hashpire.io/anakornk/32/3_2.png) [@anakornk](https://discuss.hashpire.io/u/anakornk)\
**Post date:** [December 7, 2022, 8:59am UTC](https://discuss.hashpire.io/t/digital-signature/471/7 "2022-12-07T08:59:40Z")

</div>

![image](https://discuss.hashpire.io/uploads/default/original/2X/5/50cd154a45a069c70570c02240012d88e38c1ab4.png)
