public class PasswordProtectedInputStream extends FilterInputStream
This class implements a password-protected input stream. The algorithm used
for protection is a Vigenere (repeated-key) cipher. The encrypted data is the
result of XOR KEYKEYKEY...
Fields Summary
private byte[]
password
private int
pwdIndex
Constructors Summary
public PasswordProtectedInputStream(InputStream in, byte[] password)
Constructs a new instance of the receiver.
param
in The actual input stream where to read the bytes from.
param
password The password bytes to use to decrypt the input bytes