473,659 Members | 3,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Password without a file

Usually when we make password protected programes,we store the password
encrypted in a file.But this doesnot provide enough security and
portability.

Is there any way to store the password as a part of the .exe itself in
such a way that if a password change take place at runtime it gets
changed permenantly as if it was stored in an external file.

Feb 13 '06 #1
4 1369
On Sun, 2006-02-12 at 16:33 -0800, Vysakh P Pillai wrote:
Usually when we make password protected programes,we store the password
encrypted in a file.But this doesnot provide enough security and
portability.

Is there any way to store the password as a part of the .exe itself in
such a way that if a password change take place at runtime it gets
changed permenantly as if it was stored in an external file.


I don't know how to achieve this, but I am curious how would this
improve security? You make things a little bit more obscure, but as far
as security is concerned, it seems to be equally good (and bad) as store
it in a separate file.

Change .exe itself would have other problem, for example people allowed
to execute a file might not allowed to change it. Also the solution
would be much less portable between OS.
--
Metaosp
Feb 13 '06 #2
On 12 Feb 2006 16:33:52 -0800, "Vysakh P Pillai"
<vy**********@g mail.com> wrote:
Usually when we make password protected programes,we store the password
encrypted in a file.But this doesnot provide enough security and
portability.

Is there any way to store the password as a part of the .exe itself in
such a way that if a password change take place at runtime it gets
changed permenantly as if it was stored in an external file.


What you are proposing is completely insecure.

- If the password is within the executable, then it may be reverse
engineered by a (malicious) user of the executable

- If the executable may modify itself, then a (malicoious) user of the
executable may modify it.

So, if the user is malicious, you have got a serious security threat.
Feb 13 '06 #3
Vysakh P Pillai posted:
Usually when we make password protected programes,we store the password
encrypted in a file.But this doesnot provide enough security and
portability.

Is there any way to store the password as a part of the .exe itself in
such a way that if a password change take place at runtime it gets
changed permenantly as if it was stored in an external file.

State the executable's platform. Microsoft Windows?

If so, then look up the functions:

LockResource
LoadResource
UpdateResource

Don't reply to this post, as I won't go further off-topic.

-Tomás
Feb 13 '06 #4
Vysakh P Pillai wrote:
Usually when we make password protected programes,we store the password
encrypted in a file.But this doesnot provide enough security and
portability.

Is there any way to store the password as a part of the .exe itself in
such a way that if a password change take place at runtime it gets
changed permenantly as if it was stored in an external file.


What's your C++ question?

- J.
Feb 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6968
by: Bob | last post by:
Hi, I have a website in a Linux/Apache shared hosting environment and have been given access to the MySQL server running on the same machine. To access this database from PHP, I have to call mysql_connect(host, user, password) where the password is hardcoded into my PHP source file in clear text. I see two security problems with this:
1
2265
by: alikhome | last post by:
Hi! May be anybody knows... I want to open word file (or Excel) from IIS server (URL) without getting security window for input Username and password. I know Username, Password and Domain. I'm trying to open with: http://domain%5cUsername:password@URL When my computer is registred in this domain - no problem. But if my computer is not from this domain I always get window for input Username, Password and Domain.
2
1767
by: Rickard | last post by:
OK. I have the need on a form submit to pass the data to anther system that require a login and password only I want to automate the process in an server side asp file and then process the response. I am having the form submit pass a users ss # and name to an asp file, I want that asp file to pass that info on to my "verifying" site along with the username and password for that "verification" site. Is there some way in asp to access a...
5
4300
by: MLH | last post by:
I'm supposed to set a password for the MySQL root user. The output of mysql_install_db instructed me to run the following commands... /usr/bin/mysqladmin -u root -h appserver password mynwewpasswd I did. It did not work. Here's the error: /usr/bin/mysqladmin: connect to server at 'appserver' failed error: 'Host 'appserver.crci.com' is not allowed to connect to this MySQL server' Another command I'm supposed to run also resulted in an...
3
2334
by: Whitey | last post by:
I have a password secured database. After the password is entered the user has a form that I created that allows them to search the database and retrieve information. The problem is that the connection string requires a the database password even though the user entered it to open the database. How can I get the password from the system to build the connection string? Thanks for any help, Whitey
2
6007
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database, and the linked tables are successfully created. I use the data from these linked tables in several forms. All works great until I close the Access frontend and open it again. When I try to use the forms, I get an error message: "Could not...
3
13389
by: Henry | last post by:
Hi, my asp.net application is accessing a mssql on another server. This works fine when I use this in my web.config file: <add key="dbkey" value="server=192.12.12.1;database=mydb;user=dbuser;password=mypassword" /> However I don't like to store my password in plain text. I played around with aspnet_setreg.exe and I followed those instructions:
12
11078
by: =?Utf-8?B?am9uaWdy?= | last post by:
I wrote a simple VB.NET application that imports and edits CSV files. Now I’d like to “lock” the raw (pre-import) CSV files so these cannot be opened separately. It is not high-sensitive data, I just don’t want folks to peek in the files. So time-consuming encryption is not necessary, just a simple password-to-open that I can program in my application so it internally opens the imported CSV file would be perfect, but I can’t...
20
3014
by: _mario.lat | last post by:
hallo, I use PHP and I'd like to not write in hardcoded way password and login to access to mysql. how to not write password in code for access to mysql? How can I do? I'd like that who see my code don't see my paswords. there is a solution? Thank you in advance. Mario.
1
2220
by: Juerg Beck | last post by:
Hello all I'm completely new to php but a complete newbie when it comes to unix. So please don't laugh about my problem. I have programmed a nice password check with php, javascript and a database and it works. But as I have removed the access control with ..htaccess on the server I recognized that everybody can now directly download all documents without a password, as long as they know the filename and location.
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2752
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.