ARCFourGen - A Java console application that generates a sequence of pseudo-random bytes using the alleged RC4® cipher.
Synopsis
ARCFourGen
ARCFourGen number_of_bytes

Description
ARCFourGen checks the standard input stream to see if any bytes are available. If there are, it reads a maximum of 256 bytes and uses them as the seed for a RC4® pseudo-random sequence generator. Any input bytes are assumed to be in binary format. ARCFourGen does not wait for input if no bytes are available, but instead uses a system-generated seed. ARCFourGen generates a sequence of number_of_bytes bytes, then writes them in binary to the standard output stream. If number_of_bytes is omitted, then 256 bytes are written. number_of_bytes must be an integer in the range [ 1, 2147483647 ].

The RC4® stream cipher was developed by Ron Rivest. RC4 is a registered trade mark of RSA Data Security, Inc.

Author
Paul Leigh

Reporting Bugs
Please report bugs to Paul.

Copyright
Copyright 2006 by Paul Leigh - All Rights Reserved.

See Also
RSA Data Security, Inc.
Wikipedia
Bruce Schneier, "Applied Cryptography Second Edition: Protocols, Algorithms, and Source Code in C", John Wiley & Sons, 1996.
RC4 Analysis Links.

Download this Application (Includes Source Code).