• 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++ OT Client files Encrypt

Searchingfor

New Member
Joined
Apr 25, 2015
Messages
3
Reaction score
0
Regarding this topic:
How to encrypt client files (just tips, not full working code)
While trying to build the new client on Visual Studio 17 i got errors : C2026 and C1091.
"String too big, trailing characters truncated"
"String was longer than the limit"

C++:
#ifdef AB
      std::string allData = "Here put text of all encrypted files with special encoding made by PHP (compatible with this script decoding)"; /* ABUPDATE */
    //std::string allData = g_resources.readFileContents("/data/moduleLuaLoader_fakeFile_checkIntegrity.txt");
    Crypt* x = new Crypt();
    std::string fakeFilesSaltKey = x->sha256Encode("345435", false); /* ABUPDATE */
    std::string fakeFilesXorKey = x->sha256Encode("#%%gf\"\";{", false); /* ABUPDATE */
    std::string a = "";
    #endif // AB
Any clue on how can i solve this?

What about that line
C++:
//std::string allData = g_resources.readFileContents("/data/moduleLuaLoader_fakeFile_checkIntegrity.txt");
It has the same function but reading from an external file?
 
Back
Top