MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / EncryptString

Method EncryptString

Source/Client/NM_Engine/Functions.cpp:477–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477std::string CFunctions::EncryptString(std::string szIn, const size_t size, BYTE byKey)
478{
479 BYTE pData[1024] = { 0 };
480 strcpy((char*)pData, szIn.c_str());
481
482 EncryptBuffer(pData, size, byKey);
483
484 std::string szOut = std::string(reinterpret_cast<const char*>(pData));
485 return szOut;
486}
487std::string CFunctions::DecryptString(std::string szIn, const size_t size, BYTE byKey)
488{
489 BYTE pData[1024] = { 0 };

Callers

nothing calls this directly

Calls 1

EncryptBufferFunction · 0.85

Tested by

no test coverage detected