• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Client rsa help

armyman

Member
Joined
Feb 15, 2014
Messages
318
Reaction score
13
Anyone can help me with this? i want use Rsa key of in client of my old server, in my new server.

Old server - Otserv.cpp
Lua:
#ifdef __PROTOCOL_77__
    //load RSA key
    std::cout << ":: Loading RSA key..." << std::flush;
    const char* p("14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113");
    const char* q("7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101");
    const char* d("46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073");

    //const char* p("12239432828852614354090860960673615746095558033702915723399672935057021579911056395468419206689195403373137780065653516089493234463701135781140375747972277");
    //const char* q("10711259858427938026759169874959221461148821628411937242341212527611735398001783010278321054592620319660469098677705462197351272832321359281319344401444099");
    //const char* d("9999963806743075532946738307270735143477250233277322154402354622994126400517511241188269474522372155788263357612001717493047473680624735077146913861505450545356694753169842339916625209425533206041311422175223495058140445190090253548201827044165521048106090654917280551178964858228424913112841030192343095769");

    g_otservRSA = new RSA();
    g_otservRSA->setKey(p, q, d);

I want put this rsa in this new server Otserv.cpp
Lua:
//set RSA key
    const char* p("14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113");
    const char* q("7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101");
    g_RSA.setKey(p, q);
 
Don't work :/ idk where i change in sources of my server to work with rsa of y custom client

We need to know more then "Don't work :/"
Did you get any errors when you compiled?
Are you sure you copied all of the code you need?
 
Back
Top