[Only registered and activated users can see links. Click Here To Register...]Quote:
SOLVED, TY PUMBA :handsdown:
And now using the cryptography of Cryless~, what I am suposed to introduce as a parameter to this method? I want to put my username and password but it takes a string.
This is my codeCode:std::vector<unsigned char> encryptLoginPacket(const std::string& buf) const;
Code:Crypto client; std::string username = "test"; std::string password = "1234"; client.randomNumber(0, 1000); client.createLoginVersion(); client.createLoginHash(username); client.encryptPasswordString(password); client.encryptLoginPacket("I don't know what to put here") // It takes a string as parameter int ret = send(ConnectSocket, "const char buf* of login packet?", "int len", "int flags");
Look at the project or read in other threads how the login packet etc need to be build etc. You don't need the PW encrypt function