# EP 7: Homophonic Substitution Cipher

**URL:** <https://discuss.hashpire.io/t/ep-7-homophonic-substitution-cipher/275>\
**Category:** กระดานเนื้อหา 📄\
**Tags:** published\
**Created:** [July 13, 2022, 2:41am UTC](https://discuss.hashpire.io/t/ep-7-homophonic-substitution-cipher/275 "2022-07-13T02:41:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 13, 2022, 3:45am UTC](https://discuss.hashpire.io/t/ep-7-homophonic-substitution-cipher/275/2 "2022-07-13T03:45:47Z")

</div>

(อันนี้อาจจะเพิ่มเป็น EP ก่อน EP 7 Homophonic Substitution Cipher หรืออาจลงไปพร้อมกัน )

Cryptanalysis คืออะไร

 ![Cryptographic-series-ep7.0-1](https://discuss.hashpire.io/uploads/default/original/1X/89e4dfb4c4cab967da6c8c98b95a5675b87fca09.png)

 ![Cryptographic-series-ep7.0-2](https://discuss.hashpire.io/uploads/default/original/1X/19693e2b281839d8c9017a058f0f32d44ae81f73.png)

 ![Cryptographic-series-ep7.0-3](https://discuss.hashpire.io/uploads/default/original/1X/88ee2dae8bcfbeb9e9e9caeefcedfd843ea7c9d4.png)

 ![Cryptographic-series-ep7.0-4](https://discuss.hashpire.io/uploads/default/original/1X/0d848469eb2be67ab18e095bcc160481710adf0a.png)

 ![Cryptographic-series-ep7.0-5](https://discuss.hashpire.io/uploads/default/original/1X/38a5c16538bbeb05f80620d3372afe46174b1e7a.png)

Cryptanalysis มาจากภาษากรีก kryptós เเปลว่า ซ่อน และ analýein แปลว่า วิเคราะห์ คือกระบวนการวิเคราะห์ระบบข้อมูล เพื่อทำความเข้าใจกับขั้นตอนการทำงาน และศึกษาระบบการเข้ารหัส เพื่อค้นหาจุดอ่อนหรือการรั่วไหลของข้อมูล รวมถึงศึกษาการโจมตีแบบ Side-Channel Attack ซึ่งเป็นลักษณะการโจมตี ที่ผู้โจมตีจะเก็บและใช้ข้อมูลจากการทำงานของระบบเพื่อทำการโจมตี แตกต่างจากการโจมตีแบบทั่วไปที่จำเป็นต้องหาจุดอ่อน หรือช่องโหว่ของระบบก่อนทำการโจมตี

.  
ย้อนอ่าน 3 ตอนก่อนหน้า  
EP 4: Simple Substitution Cipher - [https://bit.ly/3aIvhWD](https://bit.ly/3aIvhWD)  
EP 5: Route Cipher - [https://bit.ly/3INH5mZ](https://bit.ly/3INH5mZ)  
EP 6: Nomenclator Cipher ฆ่า Mary Queen of Scots ได้อย่างไร - [https://bit.ly/3PnES4j](https://bit.ly/3PnES4j)  
.

ใน Cryptanalysis มีกระบวนการสำคัญหนึ่งที่เรียกว่า Frequency Analysis คือการศึกษาความถี่ของตัวอักษรหรือกลุ่มของตัวอักษรในข้อความเข้ารหัส ซึ่งกระบวนการนี้เป็นกระบวนการที่สามารถใช้ในโจมตีการเข้ารหัสแบบ Classical Cryptography ได้

การวิเคราะห์ความถี่ของตัวอักษรหรือกลุ่มตัวอักษร จะตั้งอยู่บนพื้นฐานข้อเท็จจริงที่ว่าในภาษาใดก็ตาม มักจะมีตัวอักษรหรือคู่ตัวอักษรที่ถูกใช้งานบ่อย และตัวอักษรที่แทบจะไม่ถูกใช้งานเลย เช่น ในภาษาอังกฤษ ตัวอักษร E, T, A และ O เป็นตัวอักษรที่พบได้บ่อย ต่างจากตัวอักษร Z, Q, X และ J ซึ่งเป็นตัวอักษรที่พบได้น้อย หรือ คู่ตัวอักษรอย่าง TH, ER, ON, และ AN เป็นคู่ตัวอักษรที่พบได้บ่อย เหมือนกับคู่ตัวอักษรที่ทำซ้ำอย่าง SS, EE, TT, และ FF

 ![image](https://discuss.hashpire.io/uploads/default/original/1X/3bd096872da196379e65806c54c86a7e9fa1b900.jpeg)

นอกจากนั้น จากกราฟ Frequency Analysis แสดงให้เห็นว่าตัวอักษรที่ถูกใช้งานบ่อยที่สุดมีอยู่ทั้งสิ้น 12 ตัว คือ E, T, A, O, I, N, S, H, R, D, L, U ตามลำดับ

เหตุผลที่เราอยากให้ทุกคนเข้าใจในเรื่องของ Frequency Analysis นอกจากสาเหตุที่ว่ามันเป็นกระบวนที่สามารถโจมตีการเข้ารหัสแบบ Classical Cryptography ได้แล้วนั้น ยังเป็นเพราะ Frequency Analysis เป็นกระบวนการที่ทำให้การเข้ารหัสหลาย ๆ ตัวถูกพัฒนาขึ้นเพื่อป้องกันการโจมตีของ Frequency Analysis ให้ได้อีกด้วย

ใน EP หน้าที่เราจะพาทุกคนไปรู้จักกับการเข้ารหัสแบบ Homophonic Substitution Cipher การเข้ารหัสที่นำเอาหลักการของ Frequency Analysis มาใช้ จะเป็นอย่างไร ?

References

> **[Frequency analysis](https://en.wikipedia.org/wiki/Frequency_analysis)**
>
> In cryptanalysis, frequency analysis (also known as counting letters) is the study of the frequency of letters or groups of letters in a ciphertext. The method is used as an aid to breaking classical ciphers.
> Frequency analysis is based on the fact that, in any given stretch of written language, certain letters and combinations of letters occur with varying frequencies. Moreover, there is a characteristic distribution of letters that is roughly the same for almost all samples of that language. F...

---

_[View the full topic](https://discuss.hashpire.io/t/ep-7-homophonic-substitution-cipher/275)._
