Here you goI would like to block the possibility of logging in from clients other than the official one of my server. How to do it? Change RSA? I can't find any guide. please help
I don't understand it completely. OTS RSA Generator (https://ots.me/rsa/) can I use this generator instead of entering commands? where to put the rsa generated in the link?
- You generate the RSA by refreshing the page.
- OTS RSA Generator > N (modulus) - for OTClient > This is the RSA Code you need to put into your modules/gamelib/const
- OTS RSA Generator > key.pem - for new servers > This is the RSA Code you need to put into your Servers Root Folder, there is a file called Key.pem, open that with notepad.
Isn't RSA in 1.3 a bit different as in there is no key.pem but you need to change RSA in the sources, it should be in the file configmanager.cppThank you very much for help. I have a problem with key.pem. I create a key.pem file in the main TFS directory but when the server starts, no information about key.pem or rsa is displayed and I can also connect to otclient with the default RSA.
By default, I didn't have key.pem anywhere in my tfs 1.3 and I created this file myself, but it didn't help. I also don't have any key.pem option in config.lua.
Is it possible that I have blocked the use of custom rsa?
Thank you very much for your help. However, RSA is edited in otserv.cpp and I have a few questions:Isn't RSA in 1.3 a bit different as in there is no key.pem but you need to change RSA in the sources, it should be in the file configmanager.cpp
use the guide to generate the rsa, not the generator. replace your public.pem, and just set the other key at const.lua. the last thing you need is to encrypt the client, if you're using mehah otclient, use the following settings to set-up the encryptionThank you very much for your help. However, RSA is edited in otserv.cpp and I have a few questions:
1. In this case, should I change: const char* p and const char* q to
P (prime1) - for old servers: and Q (prime2) - for old servers: from OTS RSA Generator (https://ots.me/rsa/) ?
Post automatically merged:
when I put new rsa in \modules\gamelib\const.lua will it be safe? I have an updater on the website and players will be able to view this rsa and insert it into their bot client. how to do it safely?
#define ENABLE_ENCRYPTION 1
#define ENABLE_ENCRYPTION_BUILDER 1
#define ENCRYPTION_PASSWORD "MYPASSWORD"
otclient.exe --encrypt
That's true? then how to get rid of bots?What's even the point of changing RSA if it can be read directly from the memory of the running client? Just use e.g. CheatEngine to search for a string with a length of 309 characters, copy it and use it in your client.
The purpose of the RSA encryption is not to stop bots, but to secure the client-server communication (login data in particular) against the "man in the middle".That's true? then how to get rid of bots?
You can read the public key, but not the server's private key, meaning that you can only encrypt messages for the server but not decrypt them. That could be the point... Public-key cryptography - Wikipedia (https://en.wikipedia.org/wiki/Public-key_cryptography)What's even the point of changing RSA if it can be read directly from the memory of the running client? Just use e.g. CheatEngine to search for a string with a length of 309 characters, copy it and use it in your client.