Hi there I am trying to implement the RC4 algorithm in Java. I found this code as an example that help me to understand the idea:
public class RC4 { privat
Your integer arrays S andT have not been constructed. Hence you get a NullPointerException as soon as you attempt to use them.
S
T
NullPointerException
Looking at the rest of the code, I guess they should have been 256-item arrays:
private int[] S = new int[256]; private int[] T = new int[256];