|
You last visited: Today at 20:18
Advertisement
[EU, Client] Cryptography
Discussion on [EU, Client] Cryptography within the Nostale forum part of the MMORPGs category.
10/23/2017, 12:32
|
#16
|
elite*gold: 0
Join Date: Jun 2017
Posts: 119
Received Thanks: 138
|
Quote:
Originally Posted by -Nokis
The NosTale Client uses the Windows-1252 encoding. You have to encode ‘current_packet’ in win1252.
|
It's not a need.
|
|
|
10/23/2017, 17:20
|
#17
|
elite*gold: 0
Join Date: Mar 2015
Posts: 871
Received Thanks: 1,229
|
It is if you want properly encode/decode special characters like łśćń etc, however it's not always the win1252, it depends on your local 8 bit, eg it may be win1250
|
|
|
10/23/2017, 21:23
|
#18
|
elite*gold: 0
Join Date: Jul 2014
Posts: 283
Received Thanks: 317
|
it depends on the client, some countries use 1250 (poland), others use 1252 (germany, i think)
|
|
|
11/05/2017, 22:44
|
#19
|
elite*gold: 0
Join Date: Jan 2016
Posts: 36
Received Thanks: 0
|
Ty guys  , now getting packets works, but sending packet is buggy, what should i do to send right encoded packet? Better question is, what is the server encoding?
|
|
|
11/22/2017, 11:19
|
#20
|
elite*gold: 0
Join Date: Sep 2015
Posts: 482
Received Thanks: 532
|
Quote:
Originally Posted by lika85
Ty guys  , now getting packets works, but sending packet is buggy, what should i do to send right encoded packet? Better question is, what is the server encoding? 
|
Had you found an answer to your question? Let us know about your experience it might help someone else.
|
|
|
11/22/2017, 21:43
|
#21
|
elite*gold: 0
Join Date: Jan 2016
Posts: 36
Received Thanks: 0
|
Well i fount, that the right encoding for czech server is Latin 1, probably for other servers too, i am encoding the output of decryptGamePacket function, but sending chars from Latin 1 is still not working  . I tried encode the input to encrypt function, the output too, with different encodings (latin 1,cp1250,cp1252), but the result on nostale server is "?" or space, sometimes when i write character from Latin 1, it cuts the packet, so if i send "say abcčd" i see "abc", but sometimes it is "abc?d" or "abc d"
|
|
|
12/05/2017, 00:59
|
#22
|
elite*gold: 0
Join Date: Oct 2017
Posts: 11
Received Thanks: 16
|
Quote:
Originally Posted by lika85
Well i fount, that the right encoding for czech server is Latin 1, probably for other servers too, i am encoding the output of decryptGamePacket function, but sending chars from Latin 1 is still not working  . I tried encode the input to encrypt function, the output too, with different encodings (latin 1,cp1250,cp1252), but the result on nostale server is "?" or space, sometimes when i write character from Latin 1, it cuts the packet, so if i send "say abcčd" i see "abc", but sometimes it is "abc?d" or "abc d"
|
The correct encoding for Czech is Windows-1250.
I think there's a problem with your encryption algorithm.
I suggest to use the C++ crypto for testing: pass a random string to the C++ encryption, compile it, do the same with your Java algorithm and check if the output is the same (encoding here doesn't matter, compare bytes from buffers). If not, compare step by step your algorithm with the C++ one.
|
|
|
12/05/2017, 19:54
|
#23
|
elite*gold: 0
Join Date: Jan 2016
Posts: 36
Received Thanks: 0
|
Quote:
Originally Posted by -Nokis
The correct encoding for Czech is Windows-1250.
I think there's a problem with your encryption algorithm.
I suggest to use the C++ crypto for testing: pass a random string to the C++ encryption, compile it, do the same with your Java algorithm and check if the output is the same (encoding here doesn't matter, compare bytes from buffers). If not, compare step by step your algorithm with the C++ one.
|
I've solved my problem. I was really dumb  . I converted the buf string into byte array with the coding, and then converted the byte array to string. In java String has only UTF16 internlal coding. So it is working  .
|
|
|
03/15/2018, 13:18
|
#24
|
elite*gold: 0
Join Date: Jan 2018
Posts: 11
Received Thanks: 1
|
after i include the cryptoPP library and compile.
#error <mutex> is not supported when compiling with /clr or /clr  ure.
|
|
|
 |
|
Similar Threads
|
CLIENT CRYPTOGRAPHY
04/08/2016 - Nostale - 6 Replies
C++ - CLIENT - LOGIN
// RETURN A RANDOM NUMBER
int Random(int start, int end) { return rand()%(end-start)+start; }
// RETURN ENCRYPTED PASSWORD
std::string pwEncrypt(std::string password)
{
const unsigned char secondtable = { 0x2E, 0x2A, 0x17, 0x4F, 0x20, 0x24, 0x47, 0x11, 0x5B, 0x37, 0x53,
0x43, 0x15, 0x34, 0x45, 0x25, 0x4B, 0x1D, 0x2F, 0x58, 0x2B, 0x32, 0x63 };
|
[PHP - CLIENT] Login Cryptography
11/02/2013 - Nostale - 30 Replies
Hi community ! :pimp:
today i open this thread for release the login cryptography written in php..
// encrypt 'NoS0575..' packet
function packet_enc($packet)
{
$str_enc = "";
for($i = 0; $i < strlen($packet); $i++)
$str_enc .= chr((ord($packet)^195) + 15);
|
Auth Cryptography
02/01/2013 - CO2 Private Server - 3 Replies
i Wonder if the Auth Cryptography has changed at patch 5698 cuz i couldnt login into My Pserver ... after checking PasswordSeed (1059) & Login (1052) & Auth Response (1055) .. none of them has changed
Regards
Shadowman123
|
Help with cryptography
05/16/2012 - CO2 Programming - 10 Replies
Hello ppl, so ive been learning general hacking methods for quite a decent while now, first i started out with small things such as memory hacks and then i started learning even more which led me to packet sniffing and that led me to the idea of fiddling around with conquer. Now that ive had a chance to play around with it i decided to hook the connect function of the game and i was successful at doing so, i also managed to get the client to connect to my socket first rather than connect to the...
|
Client Server Cryptography?
07/14/2009 - Archlord - 7 Replies
i was wondering, the communication between alefcient and the game server is encrypted, and alefclient binary seems to use Cryptography API (CNG) with most of its functions like:
BCryptCloseAlgorithmProvider
BCryptCreateHash
BCryptDecrypt
BCryptDeriveKey
BCryptDestroyHash
BCryptDestroyKey
BCryptDestroySecret
BCryptDuplicateHash
|
All times are GMT +1. The time now is 20:19.
|
|