public class RC4
extends java.lang.Object
But if you are looking for encryption algorithms for a full-blown application, it would be better to stick with Sun's JCE framework. You can find a *free* JCE implementation with RC4 (tm) at Cryptix (http://www.cryptix.org/).
Note that RC4 (tm) is a trademark of RSA Data Security, Inc. Also, if you are within USA, you may need to acquire licenses from RSA to use RC4. Please check your local law. The author is not responsible for any illegal use of this code.
public RC4(java.lang.String key) throws java.lang.NullPointerException
key
- the encryption/decryption keyjava.lang.NullPointerException
public RC4(byte[] key) throws java.lang.NullPointerException
key
- the encryption/decryption keyjava.lang.NullPointerException
public byte[] rc4(java.lang.String data)
data
- the data to be encrypted/decryptedpublic byte[] rc4(byte[] buf)
buf
- the data to be encrypted/decrypted