encyclopegia.org

keystream

In cryptography, a keystream is a stream of random or pseudorandom characters that are combined with a plaintext message to produce an encrypted message (the ciphertext). The "characters" in the keystream can be bits, bytes, numbers or actual characters like A-Z depending on the usage case. Usually each character in the keystream is either added, subtracted or XORed with a character in the plaintext to produce the ciphertext, using modular arithmetic. Keystreams are used in the one-time pad cipher and in most stream ciphers. Block ciphers can also be used to produce keystreams. For instance, CTR mode is a block mode that makes a block cipher produce a keystream and thus turns the block cipher into a stream cipher.

In cryptography, a keystream is a stream of random or pseudorandom characters that are combined with a plaintext message to produce an encrypted message (the ciphertext). The "characters" in the keystream can be bits, bytes, numbers or actual characters like A-Z depending on the usage case. Usually each character in the keystream is either added, subtracted or XORed with a character in the plaintext to produce the ciphertext, using modular arithmetic. Keystreams are used in the one-time pad cipher and in most stream ciphers. Block ciphers can also be used to produce keystreams. For instance, CTR mode is a block mode that makes a block cipher produce a keystream and thus turns the block cipher into a stream cipher.

References

No reference rows published for this article.

Cite this article

MLA

"keystream." encyclopegia.org, 2023, https://encyclopegia.org/wiki/keystream. Accessed 24 November 2026.

Chicago

"keystream." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/keystream.

APA

encyclopegia.org. (2023). keystream. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/keystream

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

National Bank of Slovakia

stub · references available

Five Great Kilns

stub · references available

Walter Davis

stub · references available

Battle of Alarcos

stub · references available

Whiteford Sands

stub · references available

Black-footed mongoose

stub · references available

Vana Tallinn

stub · references available

Interstate 29 in Iowa

stub · references available

propaganda model

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1136438276 · 0.55 · snapshot keystream-176076-819af14bf0828f42 · QID Q1509893

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.