ACL file format

Status
Not open for further replies.
Socius Decennalis
Decennium
Joined
Jan 26, 2012
Messages
75
Reaction score
74
I'll try to speak only important part in understanding the structure of the file.
acl files, 188 bytes is assigned to each character that total 940 bytes.
Among the components of 188 bytes, the important part is the following.

acl - ACL file format - RaGEZONE Forums


When the server encrypts/decrypts the acl files are working off by 4 bytes.
Encryption/Decryption key code is as follows.

Code:
CSimpleCrypt::CSimpleCrypt()
{
	m_ConstKey1 = 2366183;
	m_ConstKey2 = 1432754;
	m_DynamicKey = 79984829;
}

CSimpleCrypt::~CSimpleCrypt()
{
}

void CSimpleCrypt::Encrypt32bit(const char * pSrc, char * pDest)
{
	int DynamicKey = m_DynamicKey;

	for (int i = 0 ; i < 4 ; i++)
	{
		pDest[i] = (char)((BYTE)(pSrc[i]) ^ (DynamicKey >> 8));
		DynamicKey = ((BYTE)(pDest[i]) + DynamicKey) * m_ConstKey1 + m_ConstKey2;
	}
}

void CSimpleCrypt::Decrypt32bit(const char * pSrc, char * pDest)
{
	int DynamicKey = m_DynamicKey;

	for (int i = 0 ; i < 4 ; i++)
	{
		pDest[i] = (char)((BYTE)(pSrc[i]) ^ (DynamicKey >> 8));
		DynamicKey = ((BYTE)(pSrc[i]) + DynamicKey) * m_ConstKey1 + m_ConstKey2;
	}
}



Example:
acl original | Encryption(packet)
---------------------------
00 00 00 00 <-> 78 9D 01 F5
00 01 00 00 <-> 78 9C E6 49
A5 00 00 00 <-> DD 3A F2 79
00 FF 00 00 <-> 78 62 CE 12
00 00 00 00 00 01 00 00 A5 00 00 00 <-> 78 9D 01 F5 78 9C E6 49 DD 3A F2 79



Tips on 562 Client:
Algorithm, encryption/decryption of the packet is also a 562 Client.
The only changes are the part that represents the type of character.

Initial value
219 Client | 562 Client
-------------------------
00 FF 00 00 | 00 00 FF 00


If there are any characters
219 Client | 562 Client
-------------------------
00 CL TW 00 | 00 01 CL TW

CL: Type of character (When you delete a character, FF)
TW: Hometown


How to solve this problem (choose one)
1. Debug and fix the AS.
2. Use to change the acl packet in 562 ZA.
 
Last edited:
2nd option is easy...
coz it will hard to debug account server... i think soo

but how to use this code...??
i am not getting it???
in C++ and make .dll from it???
 
can u tell me how to do Encryption/Decryption???
by application??
like i have got that application
what is the use of this Encryption/Decryption key code???
how to use that???
 
This is not a perfect code.
It is shown that the encryption/decryption is done in formula or just a few.

Does not have an application for Encryption/Decryption.
It is by using the formula above, you will be taken care of.
 
i am asking that in which application i have to use this code...
i know its not correct code... but tell me that which application run this code..???
like (C#,C++,Java script) in which???
and tell me the process of it ???
 
i am asking that in which application i have to use this code...
i know its not correct code... but tell me that which application run this code..???
like (C#,C++,Java script) in which???
and tell me the process of it ???

Above code is in C++. I think you should make a DLL and call its function in your ZA.
 
in vb 6 i have to add that asdecr.dll as related document??
coz asdecr.dll file is made in c++ 2010

Untitled - ACL file format - RaGEZONE Forums :?:
when i am adding asdecr.dll in vb 6 as reference

tell me how many references have to add???
 
Last edited:
Code:
Private Declare Function decrypt_acl Lib "asdecr.dll" (ByVal acldata As String, ByVal size As Long) As Long

is that correct??
and i replaced all timegettime to decrypt_acl

error coming @ here

Untitled - ACL file format - RaGEZONE Forums
 
Last edited:
@ prologos
Code:
[COLOR="#008000"]How to solve this problem (choose one)
1. Debug and fix the AS.[/COLOR]

can u tell which address should have to edit in account server to log character properly??
 
Last edited:
Status
Not open for further replies.
Back