954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Saving Data Inside an exe

Hey i am making an exe which is made for handiling vulnerable data
so i wanted to know wheather i could save some data (like name, passwords,etc) inside an exe
because ini files and registry is not very secure.
please help!!!

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

Encryption?

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

no

whats wrong with a text fike or registry? just lcok down the permissions and enable auditing. easy on NT based systems.

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

Putting it into the executable would be no more secure than a text file: all a prospective password hunter would need to do is search for data known to be near the strings you store and .....

Access control, running your program with specific privileges, and encryption are more commonly used techniques.

grumpier
Posting Whiz in Training
211 posts since Aug 2008
Reputation Points: 193
Solved Threads: 32
 

It's better to design good encrypt algrithom to protect your password. If you use the orignal text password, it's very easy to be fetched by debug the program directly.

LuckBill
Newbie Poster
1 post since Nov 2008
Reputation Points: 10
Solved Threads: 0
 

If your vulnerable data are not encrypted it does not matter where you hide passwords or user names...
If data are encrypted then generate dechipher key from a user input - no need to hide anything in that case, let intruder breaks his/her brains...

ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348
 

then suggest me an encription technique with code
actually this is a progect for my midterm & in the summary
that i would have to save the data inside the exe being executed
an i cant change that

aksshe10
Light Poster
29 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

Maybe xor encryption?

Depends on what level of security you wish to adopt.

Google it.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

Google freeware & legal encription/decryption codes (TEA, AES or what else). Encrypt embedded data with a key generated on the base of the (open) password then print result as initialization list and include it in your code. At run-time decode them with (open) password. Include any kind of CRC before encryption to check dechiphering correctness...

At that moment a hacker catches your program memory ;)...

Xoring is a superlightweight method, may be ultralight, O(nothing) ;)...

ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You