Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Encrypt/Decrypt Functions

Encrypt/Decrypt Functions

Posts 1–8 of 8 · Page 1 of 1
CO
CodeDemon
Encrypt/Decrypt Functions
Just a lil' something I found on google, this should stop those pesky hex editors! I take no credit for these, however I don't know who they belong too.

Code:
char* encrypt(const char* plaintext)
{
int len = strlen(plaintext);
char* cyphertext = new char[len+1];

for(int i=0 ; i<len ; ++i)
{
cyphertext[i] = plaintext[i] + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9;
}
cyphertext[len] = 0; 
return cyphertext;
}

char* decrypt(const char* plaintext)
{
int len = strlen(plaintext);
char* cyphertext = new char[len+1];

for(int i=0 ; i<len ; ++i)
{
cyphertext[i] = plaintext[i] - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9;
}
cyphertext[len] = 0; 
return cyphertext;
}
If you have no clue how to use em, all I can say is: learn C++ /


Enjoy!
#1 · 16y ago
kotentopf
kotentopf
nice dude, i try it out^^

EDIT:tested
works great

[php]test1 = "Hello";
test2 = decrypt(test1);
test3 = encrypt(test2);

DrawString(200,200,0xFFFFFFFF,pFont_Arial,"Normal: %s\nDecypted: %s\nEnycrypted: %s",test1,test2,test3);[/php]
i thank you fking very much ^^
#2 · edited 16y ago · 16y ago
CO
CodeDemon
Quote Originally Posted by kotentopf View Post
nice dude, i try it out^^

EDIT:tested
works great

[php]test1 = "Hello";
test2 = decrypt(test1);
test3 = encrypt(test2);

DrawString(200,200,0xFFFFFFFF,pFont_Arial,"Normal: %s\nDecypted: %s\nEnycrypted: %s",test1,test2,test3);[/php]
i thank you fking very much ^^
No problem! Glad I could help
#3 · 16y ago
GO
Gordon`
1. Every reverser will see that kind of encryption immediately. But for noobs it's ok.
2. This function will give you a very very big memory leak when you call it each frame (in Present, EndScene, etc)
#4 · 16y ago
GA
GameTrainerMaker
thats what i've been waiting to use thanks +rep
#5 · 16y ago
Void
Void
If you use this on your program, all I have to do is come here, copy and paste the decrypt function you put up there, and use it to reverse your hack.
#6 · 16y ago
coogle007
coogle007
Quote Originally Posted by Void View Post
If you use this on your program, all I have to do is come here, copy and paste the decrypt function you put up there, and use it to reverse your hack.
True...
Anyway Thx
#7 · 16y ago
ST
Stephen
Quote Originally Posted by Void View Post
If you use this on your program, all I have to do is come here, copy and paste the decrypt function you put up there, and use it to reverse your hack.
Thats why u change it.. notusing the same encryption method
#8 · 16y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • [TUT]Basic Encrypter\DecrypterBy Bombsaway707 in Visual Basic Programming
    30Last post 16y ago
  • Mods Encrypt/Decrypt???By SPA777174 in Call of Duty Modern Warfare 2 Help
    0Last post 16y ago
  • Encrypt/Decrypt vb.Net?By o0OpurezO0o in Visual Basic Programming
    24Last post 15y ago
  • [release] my aer-246 aes encryption | decryption programBy cosconub in C# Programming
    9Last post 15y ago
  • [Help] Encryption/Decryption [Solved]By Lyoto Machida in Visual Basic Programming
    11Last post 15y ago

Tags for this Thread

None