Questions tagged [stream-cipher]

A cryptostream is a stream that implements a stream cipher, which is a symmetric encryption algorithm that encrypts arbitrary length input stream of plain text, using a cipher stream (key) to produce an output stream of ciphertext.

What is it?

A cryptostream is a stream that implements a stream cipher.

A stream cipher is a symmetric encryption algorithm which encrypts arbitrary length stream of plain text, using a cipher stream (key) to produce a stream of ciphertext.

How does it work?

Symmetric encryption algorithm are subdivided in block ciphers and stream ciphers. Block ciphers encrypt fixed blocks of plaintext bits. Stream ciphers encrypt each plain text digit one by one.

So a stream cipher converts a stream of plaintext into a stream of ciphertext in real-time.

The .net framework offers a CryptoStream class that implements a stream cipher.

See also

36 questions
0
votes
2 answers

A known-plaintext attack on an LFSR-based stream cipher

I am reading a book about Cryptography, and I am stuck in a question. I am really trying to solve it for weeks. But I think the problem is I couldn't understand the whole picture. The question was like this : We conduct a known-plaintext attack on…
Tim Tuckle
  • 1,372
  • 7
  • 21
  • 31
0
votes
0 answers

How to handle HC 128 ( stream cipher ) for start encryption from middle bytes to end of a stream content?

My situation: I have a video streaming service that allows users to pause / resume their videos and also watch multiple parts of them in parallel (like IDM) each of them can be paused and resumed. Performance is a significat issue here, so we chose…
java acm
  • 1,020
  • 12
  • 24
0
votes
2 answers

Stream Cipher Encryption with short encrypted string

I am looking for a Stream Cipher encryption method, that will result in the encrypted string being prefferably as short as possible, and containing alphanumeric characters only. Is there such a thing built in .NET? I have researched but could not…
Amc_rtty
  • 3,662
  • 11
  • 48
  • 73
-1
votes
2 answers

How can I detect that a key has been reused in one-time-pad encryptions?

I have 20 OTP ciphertexts which I know were encrypted with only 19 distinct keys, so 1 key has been reused. Also only two different messages, with the same length, were encrypted. I know that if I xor two ciphertexts together , if they share the…
mbp
  • 28
  • 6
-3
votes
1 answer

encryption algorithm block cipher and stream cipher

what is differance between stream cipher and block cipher?As in block cipher data are in chucks while in stream cipher bit by bit encrypting so how many data are as input in stream cipher?
-5
votes
2 answers

ISAAC cipher in PHP

I need to communicate in PHP with a client that is using the ISAAC stream cipher. As far as I can tell, none of the crypto libraries available for PHP implement this cipher. How could one implement the ISAAC cipher in a PHP application? (I have…
Mitchell M
  • 475
  • 1
  • 7
  • 15
1 2
3