Re: Best way to hide strings on an .exe
Posted: Thu Aug 30, 2012 3:22 pm
Thanks to everybody for your help 

http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
String$ = Chr('R'+abs) + Chr('i'+abs) + Chr('c'+abs) + Chr('a'+abs) + Chr('r'+abs) + Chr('d'+abs) + Chr('o'+abs)
Debug String$
abc = 2
String$ = Chr(80+abc) + Chr(103+abc) + Chr(97+abc) + Chr(95+abc) + Chr(112+abc) + Chr(98+abc) + Chr(109+abc)
Debug String$
abc = 2
String$ = Chr(80+abc+aq) + Chr(103+abc+aq) + Chr(97+abc+aq) + Chr(95+abc+aq) + Chr(112+abc+aq) + Chr(98+abc+aq) + Chr(109+abc+aq)
Debug String$
Code: Select all
a$=Chr('h'+_)+Chr('i'+_)
Is different to use _ that any other string name? I ask to understand and learnPB wrote:I use this to hide strings from being viewed:
Doesn't show up in a hex editor or OllyDbg.Code: Select all
a$=Chr('h'+_)+Chr('i'+_)
Code: Select all
a$=Chr('h'+_)+Chr('i'+_)
a$=Chr('h'+asdfgh)+Chr('i'+asdfgh)
a$=Chr('h'+qwerty)+Chr('i'+asd)
PB wrote:The _ is just an unused variable name.
So yes, all three lines you posted work the same,
as long as the variables "qwerty" etc are set to 0.
Code: Select all
abc = 2
String$ = Chr(80+abc) + Chr(103+abc) + Chr(97+abc) + Chr(95+abc) + Chr(112+abc) + Chr(98+abc) + Chr(109+abc)
Debug String$