# Block Cipher VS Stream Cipher

**URL:** <https://discuss.hashpire.io/t/block-cipher-vs-stream-cipher/386>\
**Category:** Content Board\
**Tags:** beginner, article\
**Created:** [August 25, 2022, 7:28am UTC](https://discuss.hashpire.io/t/block-cipher-vs-stream-cipher/386 "2022-08-25T07:28:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:24am UTC](https://discuss.hashpire.io/t/block-cipher-vs-stream-cipher/386/4 "2022-11-07T11:24:56Z")

</div>

@Namtan เพิ่มคำอธิบายอีกนิด

- Stream Cipher เป็น… และไม่มีการทำ padding ดังนั้นขนาดของ output จะเท่ากับ input
- ส่วน Block Cipher มีโอกาสที่ output จะใหญ่กว่า input เพราะเจอ padding กรณีที่ขนาดข้อมูลหารออกมาแล้วไม่ลงตัวเท่ากับขนาด block

---

_[View the full topic](https://discuss.hashpire.io/t/block-cipher-vs-stream-cipher/386)._
