Demystifying Stream Ciphers in Symmetric Encryption (2024)

Cryptography

Stream ciphers fall under the symmetric encryption category. Thus, using stream ciphers the sender and the recipient of the data use the same key to encrypt and decrypt the data.

A stream cipher is different from a block cipher. In a stream cipher one byte (8 bit) of data is encrypted at a time while in block cipher, a block of data is encrypted at a time (usually 128 bits).

What is a keystream?

Stream ciphers make use of something called keystream. A keystream is a random 8-bit output that is generated by supplying a key to a pseudorandom bit generator. The 8-bit output generated is called keystream and is used in the encryption and decryption of data in a given stream cipher algorithm.

Encryption

Steps

  1. For encryption, plain text and keystream are required.
  2. The plain text and keystream produce ciphertext using XOR Operation.
  3. Plain text is XOR’ed with keystream bit by bit to produce CipherText.

Example

Plain Text: 10011001

Keystream: 11000011

---------------------

Ciphertext: 01011010

Decryption

Steps

  1. For decryption, ciphertext and the same keystream are required which was used for encryption.
  2. The ciphertext and the keystream produce plain text using XOR Operation.
  3. The ciphertext is XOR’ed with keystream bit by bit to produce PlainText.

Example

Ciphertext: 01011010

Keystream: 11000011

----------------------

Plain Text: 10011001

Popular stream ciphers

Following are the popular stream ciphers used for encrypting the data.

  • RC4
  • SALSA
  • SOSEMANUK
  • PANAMA

Block cipher and stream cipher differences

Following are the differences between block cipher and stream cipher in tabulated form.

Block CiphersStream CiphersBlock Ciphers converts plain text to cipher text by taking a block at a timeStream Ciphers converts plain text to cipher text by taking 1 byte of plain text at a timeBlock Ciphers encrypt 64 bits or more at a timeStream Ciphers encrypt 8 bits at a time.It is more simple than Stream CiphersIt is more complex than Block CiphersIt uses confusion as well as diffusion.It uses only confusion.Reverse Encryption is harderReverse Encryption is very simpleSlower than stream cipherFaster than block cipherIt works on transposition techniques like Caesar cipher, polygram substitution cipher etc.It works on substitution techniques like rail-fence technique, columnar transposition technique etc.

Demystifying Stream Ciphers in Symmetric Encryption (2)

Learn Applied Cryptography

Build your applied cryptography and cryptanalysis skills with 13 courses covering hashing, PKI, SSL/TLS, full disk encryption and more.

Sources

  1. https://www.sciencedirect.com/topics/computer-science/stream-ciphers
  2. https://www.geeksforgeeks.org/stream-ciphers/
  3. https://www.geeksforgeeks.org/difference-between-block-cipher-and-stream-cipher/
  4. https://www.tutorialspoint.com/difference-between-block-cipher-and-stream-cipher

Posted: January 11, 2021

Demystifying Stream Ciphers in Symmetric Encryption (3)

Nitesh Malviya

Nitesh Malviya is a Security Consultant. He has prior experience in Web Appsec, Mobile Appsec and VAPT. At present he works on IoT, Radio and Cloud Security and open to explore various domains of CyberSecurity. He can be reached on his personal blog - https://nitmalviya03.wordpress.com/ and Linkedin - https://www.linkedin.com/in/nitmalviya03/.

Demystifying Stream Ciphers in Symmetric Encryption (2024)
Top Articles
Stockholm's top 10 good value restaurants
Forex Wandcirkel - Geldboompjes van Klein naar Groot - 50x50cm Foto op Wandcirkel (met... | bol
Knoxville Tennessee White Pages
Is Sam's Club Plus worth it? What to know about the premium warehouse membership before you sign up
Cold Air Intake - High-flow, Roto-mold Tube - TOYOTA TACOMA V6-4.0
Wizard Build Season 28
Readyset Ochsner.org
Apex Rank Leaderboard
Elden Ring Dex/Int Build
Atrium Shift Select
Skip The Games Norfolk Virginia
Oppenheimer & Co. Inc. Buys Shares of 798,472 AST SpaceMobile, Inc. (NASDAQ:ASTS)
Elizabethtown Mesothelioma Legal Question
Missing 2023 Showtimes Near Landmark Cinemas Peoria
Sony E 18-200mm F3.5-6.3 OSS LE Review
Gino Jennings Live Stream Today
Munich residents spend the most online for food
Tamilrockers Movies 2023 Download
Katherine Croan Ewald
Diamond Piers Menards
The Ultimate Style Guide To Casual Dress Code For Women
Site : Storagealamogordo.com Easy Call
Is Windbound Multiplayer
Filthy Rich Boys (Rich Boys Of Burberry Prep #1) - C.M. Stunich [PDF] | Online Book Share
Integer Division Matlab
Sandals Travel Agent Login
Horn Rank
Ltg Speech Copy Paste
Random Bibleizer
Craigslist Fort Smith Ar Personals
The Clapping Song Lyrics by Belle Stars
Poe T4 Aisling
R/Sandiego
Kempsville Recreation Center Pool Schedule
Rogold Extension
Beaver Saddle Ark
Log in or sign up to view
A Man Called Otto Showtimes Near Amc Muncie 12
Powerspec G512
Saybyebugs At Walmart
2007 Jaguar XK Low Miles for sale - Palm Desert, CA - craigslist
Miami Vice turns 40: A look back at the iconic series
Love Words Starting with P (With Definition)
Tlc Africa Deaths 2021
Youravon Com Mi Cuenta
Nope 123Movies Full
Kushfly Promo Code
Diario Las Americas Rentas Hialeah
Game Akin To Bingo Nyt
Marion City Wide Garage Sale 2023
Latest Posts
Article information

Author: Lakeisha Bayer VM

Last Updated:

Views: 5884

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.