Package com.uc4.util
Class RC4
java.lang.Object
com.uc4.util.RC4
Encryption class using RC4 cipher
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdecode(String encrypted, ConnectionAttributes connectionAttributes) Decodes the passed string with the RC4 cipher using a key created from connection attributesstatic Stringencode(String orig, ConnectionAttributes connectionAttributes) Encodes the passed string with the RC4 cipher using a key created from connection attributesstatic StringencodeWithDefaultKey(String orig, ConnectionAttributes connectionAttributes) Encodes the passed string with the RC4 cipher using the default keystatic StringfillString(String s, char indent, int len) fills a string with the given char to the given length 
- 
Constructor Details
- 
RC4
public RC4() 
 - 
 - 
Method Details
- 
fillString
fills a string with the given char to the given length - 
encodeWithDefaultKey
Encodes the passed string with the RC4 cipher using the default key- Parameters:
 orig- string to be encryptedconnectionAttributes- the connection attributes to use for detecting the server version- Returns:
 - the encoded string
 
 - 
encode
Encodes the passed string with the RC4 cipher using a key created from connection attributes- Parameters:
 orig- string to be encryptedconnectionAttributes- the connection attributes to use for creating the key- Returns:
 - the encoded string
 
 - 
decode
Decodes the passed string with the RC4 cipher using a key created from connection attributes- Parameters:
 orig- string to be decryptedconnectionAttributes- the connection attributes to use for creating the key- Returns:
 - the decoded string
 
 
 -