# Stream Cipher คืออะไร

**URL:** <https://discuss.hashpire.io/t/stream-cipher/385>\
**Category:** Content Board\
**Tags:** beginner, article\
**Created:** [August 25, 2022, 7:18am UTC](https://discuss.hashpire.io/t/stream-cipher/385 "2022-08-25T07:18:28Z")\
**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:** [August 25, 2022, 7:18am UTC](https://discuss.hashpire.io/t/stream-cipher/385/1 "2022-08-25T07:18:28Z")

</div>

# Planning

## Text

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

- Stream Cipher คืออะไร

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

1. จำนวนหัวข้อทั้งหมดที่จะนำเสนอ
  - 3 หัวข้อ

2. แต่ละหัวข้อจะนำเสนออะไร
  - หัวข้อที่ 1 : อธิบายความหมายของ Stream Cipher
  - หัวข้อที่ 2 : อธิบายกระบวนการทำงานของ Stream Cipher และยกตัวอย่างประกอบ
  - หัวข้อที่ 3 : ตัวอย่าง Stream Cipher เช่น …
  - Reference : จากที่พี่ต้าอธิบายใน Discord

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

- อธิบายเกี่ยวกับ Stream Cipher ที่เชื่อมโยงมาจาก Symmetric - Key Cryptography

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

- เข้าใจหลักการทำงานของ Stream Cipher ในเบื้องต้น

## Graphic

### เสนอไอเดียสำหรับออกแบบกราฟฟิค

### รูปแบบของกราฟฟิคที่จะนำเสนอ

### โครงสร้างของกราฟฟิค

1. จำนวน Page ที่จะนำเสนอ
  - …รูป

2. แต่ละ Page เป็นรูปแบบอย่างไร
  - รูปที่ 1 :
  - รูปที่ 2 :
  - รูปที่ 3 :

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

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

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

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

# 📝 Content text + graphic

 ![Stream-Cipher-1](https://discuss.hashpire.io/uploads/default/original/2X/c/c527ed2951ee58102524f99af3e04075eb516424.png)

 ![Stream-Cipher-2](https://discuss.hashpire.io/uploads/default/original/2X/f/f0ee4bf0da1e094df1ce82cd6272a16321ed7ab8.png)

 ![Stream-Cipher-3](https://discuss.hashpire.io/uploads/default/original/2X/d/dc5e65492c3ee8f20c6c5379782f9ae0b9f5b9ac.png)

 ![Block-Cipher-7](https://discuss.hashpire.io/uploads/default/original/2X/8/8d9b899bba1b208d713966e1880a6dfcf8a9b249.png)

Stream Cipher  
คือ การเข้ารหัสแบบ Symmetric - Key Cryptography ที่มีรูปแบบการเข้ารหัสทีละบิตหรือไบต์เรียงต่อกันไปเรื่อย ๆ เช่น หากเราใช้ข้อความธรรมดาที่มีความยาว 160 บิต เป็น Input ข้อความเข้ารหัสหรือ Output ที่ได้จะเป็น 160 บิต

 ![Stream Cipher](https://discuss.hashpire.io/uploads/default/original/1X/5ca8a3d215b045d4dc3c021ceb7c9f34d4f18d7c.png)

กระบวนการทำงาน : Stream Cipher ใช้แนวคิดของ Keystream ซึ่งเป็นข้อมูลขนาดยาวที่ถูกสร้างขึ้นมาจาก PRNG หรือว่าตัวสร้างเลขสุ่มเทียม โดยข้อความจะถูกเข้ารหัสทีละตัวด้วยตัวเลขที่สอดคล้องกัน เช่น การเข้ารหัส Caesar Cipher แบบเลื่อน 3 ตำแหน่ง (shift 3) จะมี Keystream คือ 333333.. เป็นต้น  
ตัวอย่าง Stream Cipher เช่น Rivest Cipher (RC4) เป็นต้น

> **[Stream Cipher.pptx](https://docs.google.com/presentation/d/1qrqLH8TzPUh472ChPlnyGsv7bkvf73-M/edit?usp=sharing&ouid=104869847661401464704&rtpof=true&sd=true)**
>
> Stream Cipher \>\> Stream Cipher คืออะไร คือ การเข้ารหัสแบบ Symmetric - Key Cryptography ที่มีรูปแบบการเข้ารหัสทีละบิตหรือไบต์เรียงต่อกันไปเรื่อย ๆ ถ้าหากเราใช้ข้อความที่มีความยาว 39 บิต เป็น Input ข้อความเข้ารหัสหรือ Output ที่ได้จะเท่ากับ 39 บิต...

# Reference

---

<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:** [August 26, 2022, 9:31am UTC](https://discuss.hashpire.io/t/stream-cipher/385/2 "2022-08-26T09:31:20Z")

</div>

คำถามที่รบกวนให้ Reviewer ช่วยตอบค่ะ  
1.1. “หัวข้อที่ 3 : ตัวอย่าง Block Cipher เช่น …” ==\> stream??  
1.2. ขอ ref เพิ่มด้วยครับ  
2.  
3.

---

<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 7, 2022, 11:21am UTC](https://discuss.hashpire.io/t/stream-cipher/385/3 "2022-11-07T11:21:36Z")

</div>

@Namtan อ่านแล้วโอเคแล้วครับ แต่การโพสจริงๆ อาจจะมีลิงค์แนบไปอ่านเรื่อง Caeser Cipher ด้วยน่าจะดีนะครับ

---

<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:** [November 23, 2022, 8:26am UTC](https://discuss.hashpire.io/t/stream-cipher/385/4 "2022-11-23T08:26:46Z")

</div>

![how-a-stream-cipher-works](https://discuss.hashpire.io/uploads/default/original/2X/a/ab829aa4f82b019f933f46b15044de719d15b365.png)

 ![blockciphergfg](https://discuss.hashpire.io/uploads/default/original/2X/c/c7fa3d7b7fa2e5610fc5e638b38ad2cd4b4654d9.png)
