Better program encryption...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Kaiser
Enthusiast
Enthusiast
Posts: 118
Joined: Tue Jan 11, 2005 8:36 am

Better program encryption...

Post by Kaiser »

Yup... open any PB-made program with Notepad or something similar. Any strings you've declared in the code (AKA: Ex: String="ThisIsMyString") will be seen as ThisIsMyString in a place at the... let's say 70% of all the rubbish text (30% is understandable)... and that's not good, overall if you store passwords, IP addresses or important stuff in there...
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

That would slow down all other strings that are not passwords and stuff. It's better to do this manually for the strings that you need encrypted.
okasvi
Enthusiast
Enthusiast
Posts: 150
Joined: Wed Apr 27, 2005 9:41 pm
Location: Finland

Post by okasvi »

any programming language shouldnt encrypt strings on compile as default... for it you need to do it manually or using external packer...
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Maybe this can help:

viewtopic.php?t=16419
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

It sure does.... Abrigado Num3
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Better program encryption...

Post by PB »

MrMat gave me a fixed example of storing "hidden" strings like so:

Code: Select all

a.l=0
a$=Chr('h'+a)+Chr('i'+a)+Chr('d'+a)+Chr('d'+a)+Chr('e'+a)+Chr('n'+a)
If you create an exe with this, you won't see "hidden" if you open the exe
in Notepad or a hex editor. This is the easiest way to hide text in an exe,
but it's by no means secure in any way. Good to stop casual snooping.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply