This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RC4 { | |
private final byte[] S = new byte[256]; | |
private final byte[] T = new byte[256]; | |
private final int keylen; | |
public RC4(final byte[] key) { | |
if (key.length < 1 || key.length > 256) { | |
throw new IllegalArgumentException( | |
"key must be between 1 and 256 bytes"); | |
} else { |