• 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!

C++ [OTC] RSA Key.

elnelson

Lunaria World Dev
Joined
Jun 20, 2009
Messages
579
Solutions
2
Reaction score
58
Location
México
Hello, otlanders. I have a wonder, how can i set RSA key so players must use my custom client to log in?
in using retail OTC and tfs 0.4
 
I really dont know but use tfs as example. It uses one otserv rsa. Try to get the rsa of tibia client and compare. If both are same then yeah, you will need to generatw a new rsa for both projects.
 
i've checked but theyre not the same...


TFS 0.4 (8.6) RSA KEY:
Code:
    std::clog << ">> Loading RSA key" << std::endl;
    const char* p("14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113");
    const char* q("7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101");
    const char* d("46730330223584118622160180015036832148732986808519344675210555262940258739805766860224610646919605860206328024326703361630109888417839241959507572247284807035235569619173792292786907845791904955103601652822519121908367187885509270025388641700821735345222087940578381210879116823013776808975766851829020659073");

OTC RSA key
Code:
OTSERV_RSA  = "1091201329673994292788609605089955415282375029027981291234687579" ..
              "3726629149257644633073969600111060390723088861007265581882535850" ..
              "3429057592827629436413108566029093628212635953836686562675849720" ..
              "6207862794310902180176810615217550567108238764764442605581471797" ..
              "07119674283982419152118103759076030616683978566631413"
CIPSOFT_RSA = "1321277432058722840622950990822933849527763264961655079678763618" ..
              "4334395343554449668205332383339435179772895415509701210392836078" ..
              "6959821132214473291575712138800495033169914814069637740318278150" ..
              "2907336840325241747827401343576296990629870233111328210165697754" ..
              "88792221429527047321331896351555606801473202394175817"
 
Only cut the RSA for example OF

  1. OTSERV_RSA = "1091201329673994292788609605089955415282375029027981291234687579" ..
  2. "3726629149257644633073969600111060390723088861007265581882535850" ..
  3. "3429057592827629436413108566029093628212635953836686562675849720" ..
  4. "6207862794310902180176810615217550567108238764764442605581471797" ..
  5. "07119674283982419152118103759076030616683978566631413"

TO

  1. const char* p("10912013296739942927886096050899554152823750290279812912346875793726629149257644633073969600111060390723088861007265581882535850342905759282762943641310856");
  2. const char* q("6029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413");
 
Only cut the RSA for example OF

  1. OTSERV_RSA = "1091201329673994292788609605089955415282375029027981291234687579" ..
  2. "3726629149257644633073969600111060390723088861007265581882535850" ..
  3. "3429057592827629436413108566029093628212635953836686562675849720" ..
  4. "6207862794310902180176810615217550567108238764764442605581471797" ..
  5. "07119674283982419152118103759076030616683978566631413"

TO

  1. const char* p("10912013296739942927886096050899554152823750290279812912346875793726629149257644633073969600111060390723088861007265581882535850342905759282762943641310856");
  2. const char* q("6029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413");
bro, i changed the const.lua RSA but seems is not working properly. maybe is it missing the const char* d?
 
707867192133156945.gif
 
Doesnt the TFS have the private RSA key in source and client have public RSA key, hence why they dont match? I could be wrong
But latest TFS1.3 use key.pem file and not RSA key in source, you could change your source to do this aswell.
If you let me know your source I could maybe help with that.
 
Back
Top