Thanks for the quick reply.
I've been looking at the EmuLoginServer code distributed with the eqemu server and see that the encryption/decryption is done inside a DLL (EQEmuAuthCrypto.dll I think).
I tried loading it into .NET several different ways, but it always has issues with it.
When adding it as a reference in C# .NET it says:
---------------------------
Microsoft Visual Studio
---------------------------
A reference to 'C:\test\EQEmuAuthCrypto.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
---------------------------
OK
---------------------------
Is there a .NET-friendly Crypto dll or source code (not sure if this is going to open a can of worms or not)? Also, if someone can explain how the encryption is done, that'd be awesome.
I created a regular C++ application and call the encrypt/decrypt functions, but for some reason, the Decrypt function is complaining about the size not being a block size and spits out garbage.
This is what I did:
encrypted = encrypt_func(password,strlen(password),mode);
decrtypted=decrypt_func(encrypted,strlen(encrypted ),mode);
decrypted is not the same as password and is garbage (not to mention that there is that warning issued about the size not being a block size).
Thanks!
|