Stream Cipher

In cryptography, a stream cipher is a symmetric key cipher where plaintext digits are combined with a pseudorandom cipher digit stream (keystream). In a stream cipher each plaintext digit is encrypted one at a time with the corresponding digit of the keystream, to give a digit of the cyphertext stream. An alternative name is a state cipher, as the encryption of each digit is dependent on the current state. In practice, a digit is typically a bit and the combining operation an exclusive-or (xor).

The pseudorandom keystream is typically generated serially from a random seed value using digital shift registers. The seed value serves as the cryptographic key for decrypting the ciphertext stream.

Stream ciphers represent a different approach to symmetric encryption from block ciphers. Block ciphers operate on large blocks of digits with a fixed, unvarying transformation. This distinction is not always clear-cut: in some modes of operation, a block cipher primitive is used in such a way that it acts effectively as a stream cipher. Stream ciphers typically execute at a higher speed than block ciphers and have lower hardware complexity. However, stream ciphers can be susceptible to serious security problems if used incorrectly (see stream cipher attacks); in particular, the same starting state (seed) must never be used twice.

Read more about Stream Cipher:  Loose Inspiration From The One-time Pad, Types of Stream Ciphers, Linear Feedback Shift Register-based Stream Ciphers, Other Designs, Security, Usage, Comparison of Stream Ciphers, Trivia

Famous quotes containing the words stream and/or cipher:

    Ye gentle souls, who dream of rural ease,
    Whom the smooth stream and smoother sonnet please;
    Go! if the peaceful cot your praises share,
    Go, look within, and ask if peace be there:
    If peace be his—that drooping weary sire,
    Of theirs, that offspring round their feeble fire,
    Or hers, that matron pale, whose trembling hand
    Turns on the wretched hearth th’ expiring brand.
    George Crabbe (1754–1832)

    The eye is the first circle; the horizon which it forms is the second; and throughout nature this primary figure is repeated without end. It is the highest emblem in the cipher of the world.
    Ralph Waldo Emerson (1803–1882)