com.fasteasytrade.JRandTest.Algo
Class RC4Key
java.lang.Object
com.fasteasytrade.JRandTest.Algo.Cipher
com.fasteasytrade.JRandTest.Algo.RC4Key
- public class RC4Key
- extends Cipher
Alleged RC4 implemented as RC4Key. Returns byte.
Include debug level and logging into external file.
- Author:
- Zur Aougav
Constructor Summary |
(package private) |
RC4Key(byte[] Key,
int d,
String logname)
|
ready
boolean ready
Key
private byte[] Key
KeyBytes
private byte[] KeyBytes
CypherBytes
private byte[] CypherBytes
i
int i
jump
int jump
ps
PrintStream ps
debugLevel
int debugLevel
RC4Key
RC4Key(byte[] Key,
int d,
String logname)
- Parameters:
Key
- is a byte array to init internal state vector.d
- for debug level. 0 is none. 1 is minimal into logfile. 2 is
detailed.logname
- is used with d > 0
next
public byte next()
- encrypt/decrypt from data to Result. Uses the key in Key
print
public void print(String s)
println
public void println(String s)
print
public void print(byte s)
println
public void println(byte s)
finalize
protected void finalize()
throws Throwable
- carefull clear of buffers in RC4Key object
- Throws:
Throwable
JRandTest at SourceForge
Copyright © 2005 Zur Aougav. All Rights Reserved.