What is the difference between a block cipher and a stream cipher?



            A block cipher processes the input one block at a time, producing an output block for each input block.
            A stream cipher processes the input continuously, producing output one element at a time, as it goes alone.