NOTE: I originally posted this on Snipplr.
This code is public domain.
Improved ARC4 (IARC4) contains a number of proposed improvements over naive ARC4:
- Uses KSA from VMPC minus an IV.
- Uses 2 state spaces (RC4A). Splits the key and nonce to produce a key and nonce for each state …