Skip to content

Instantly share code, notes, and snippets.

View CptTZ's full-sized avatar
😆
Hi

ItchyZ CptTZ

😆
Hi
  • ZSNJ, KPIT, KSEA, KSFO
View GitHub Profile
@CptTZ
CptTZ / Java-RC4
Created November 18, 2018 03:50 — forked from songzhiyong/Java-RC4
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 {