|
| NewCrypt (byte[] blowfishKey) |
|
| NewCrypt (String key) |
|
byte[] | decrypt (byte[] raw) throws IOException |
|
void | decrypt (byte[] raw, final int offset, final int size) throws IOException |
|
byte[] | crypt (byte[] raw) throws IOException |
|
void | crypt (byte[] raw, final int offset, final int size) throws IOException |
|
|
static boolean | verifyChecksum (byte[] raw) |
|
static boolean | verifyChecksum (byte[] raw, final int offset, final int size) |
|
static void | appendChecksum (byte[] raw) |
|
static void | appendChecksum (byte[] raw, final int offset, final int size) |
|
static void | encXORPass (byte[] raw, int key) |
|
static void | encXORPass (byte[] raw, final int offset, final int size, int key) |
|
|
static Logger | _log = Logger.getLogger(NewCrypt.class.getName()) |
|
This class ...
- Version
- Revision
- 1.3.4.1
- Date
- 2005/03/27 15:30:09
◆ NewCrypt()
com.premium.NewCrypt.NewCrypt |
( |
byte[] |
blowfishKey | ) |
|
|
inline |
◆ encXORPass() [1/2]
static void com.premium.NewCrypt.encXORPass |
( |
byte[] |
raw, |
|
|
final int |
offset, |
|
|
final int |
size, |
|
|
int |
key |
|
) |
| |
|
inlinestatic |
Packet is first XOR encoded with key
Then, the last 4 bytes are overwritten with the the XOR "key". Thus this assume that there is enough room for the key to fit without overwriting data.
- Parameters
-
raw | The raw bytes to be encrypted |
offset | The begining of the data to be encrypted |
size | Length of the data to be encrypted |
key | The 4 bytes (int) XOR key |
◆ encXORPass() [2/2]
static void com.premium.NewCrypt.encXORPass |
( |
byte[] |
raw, |
|
|
int |
key |
|
) |
| |
|
inlinestatic |
Packet is first XOR encoded with key
Then, the last 4 bytes are overwritten with the the XOR "key". Thus this assume that there is enough room for the key to fit without overwriting data.
- Parameters
-
raw | The raw bytes to be encrypted |
key | The 4 bytes (int) XOR key |
The documentation for this class was generated from the following file:
- /home/master/Documents/l2/servers/source/l2premium/L2JPremium_GameServer/src/com/premium/NewCrypt.java