Hack Forums
[C] Polymorphic string encryption for 22 programming languages (C++, Lua and many others) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] Polymorphic string encryption for 22 programming languages (C++, Lua and many others) (/showthread.php?tid=6323838)



Polymorphic string encryption for 22 programming languages (C++, Lua and many others) - PELock - Apr 14, 2026

StringEncrypt app allows you to encrypt strings and files using randomly generated algorithm, generating a polymorphic decryption code in the selected programming language. Simple & fast - try it yourself!

https://www.stringencrypt.com/

VSCode extension allows easy usage for all of the supported languages

How to use video - https://vimeo.com/1183155199

https://marketplace.visualstudio.com/items?itemName=PELock.stringencrypt

We have over 4k installations already.

API allows automation from Python and PHP packages

https://www.stringencrypt.com/api/

Free license keys in exchange for some publicity on social media, dev forums, dev blogs etc.

Sample string encrypted with StringEncrypt in C++ mode

Code
// encrypted with https://www.stringencrypt.com (v1.5.0) [C/C++]
// wszHackForums = "https://hackforums.net/"
wchar_t wszHackForums[24] = { 0xA22B, 0xDA13, 0xCEEB, 0x4EFD, 0x557F, 0x8904, 0xF18F, 0x231A,
                              0x73DB, 0x6EF4, 0x831C, 0x9336, 0x69DC, 0x731B, 0x7AE7, 0xF4B4,
                              0xA227, 0x7A14, 0x56E0, 0x68FD, 0x6BFF, 0xBAA4, 0xF397, 0x24D8 };

for (volatile unsigned int LrqKD = 0, noigk = 0; LrqKD < 24; LrqKD++)
{
    noigk = wszHackForums[LrqKD];
    for (unsigned int kCRIA = 0; kCRIA < 2; kCRIA++)
    {
        noigk = (((noigk & 0xFFFF) >> 8) | ((noigk & 0xFFFF) << 8)) & 0xFFFF;
        for (unsigned int vwtbd = 0; vwtbd < 3; vwtbd++)
        {
            noigk = ((noigk & 0xFFFF) + 1) & 0xFFFF;
        }
    }
    for (unsigned int RjKHk = 0; RjKHk < 3; RjKHk++)
    {
        noigk = ((noigk ^ 0xFFFF) & 0xFFFF);
    }
    noigk = (((noigk & 0xFFFF) << 8) | ((noigk & 0xFFFF) >> 8)) & 0xFFFF;
    for (unsigned int LTkpD = 0; LTkpD < 2; LTkpD++)
    {
        noigk = (((noigk & 0xFFFF) << (LrqKD % 16)) | ((noigk & 0xFFFF) >> (16 - (LrqKD % 16)))) & 0xFFFF;
        for (unsigned int MTKBu = 0; MTKBu < 4; MTKBu++)
        {
            for (unsigned int MPzir = 0; MPzir < 2; MPzir++)
            {
                noigk = ((noigk & 0xFFFF) + LrqKD) & 0xFFFF;
                noigk = ((noigk & 0xFFFF) + 0xA917) & 0xFFFF;
            }
        }
    }
    noigk = (noigk ^ 0x08CA) & 0xFFFF;
    noigk = (((noigk & 0xFFFF) >> 8) | ((noigk & 0xFFFF) << 8)) & 0xFFFF;
    for (unsigned int GjmPT = 0; GjmPT < 2; GjmPT++)
    {
        noigk = ((noigk & 0xFFFF) - 1) & 0xFFFF;
    }
    wszHackForums[LrqKD] = noigk;
}

wprintf(wszHackForums);