473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Password changing using mutation strings

I Posted a question about how to incorporate changable passwords to my
c/c++ programs without using a file to store the password in my college
discussion forum and all answers included the usage of self mutating
strings.But nobody actually knew how to incorporate it into the code.

Can any one please help me with this?

Feb 9 '06 #1
5 3449

vy**********@gmail.com wrote:
I Posted a question about how to incorporate changable passwords to my
c/c++ programs without using a file to store the password in my college
discussion forum and all answers included the usage of self mutating
strings.But nobody actually knew how to incorporate it into the code.

Can any one please help me with this?


Please be more specific in your question?

Anyway, you have to use files to store the password. The trick is to
encrypt it and then store it in file.

Feb 9 '06 #2
vy**********@gmail.com wrote:
I Posted a question about how to incorporate changable passwords to my
c/c++ programs without using a file to store the password in my
college discussion forum and all answers included the usage of self
mutating strings.But nobody actually knew how to incorporate it into
the code.

Can any one please help me with this?


What code? If you have a C question, please say so, ideally posting
minimal example of the problem code.

Questions about algorithms in general are best asked in
comp.programming, and you may also want some of the crypto newsgroups,
as well (sorry, don't know their names).
--
BR, Vladimir

Innovation is hard to schedule.
-- Dan Fylstra

Feb 9 '06 #3
my question is simple.Can we change the source code at runtime?

Feb 9 '06 #4
vy**********@gmail.com wrote:

my question is simple.Can we change the source code at runtime?


Yes, but that's not what you need. Changing the source code at runtime
has no effect until you recompile that code and run the new version of
the program.

Unless you are running in an interpreted environment, in which case the
answer becomes "you'll have to check with the vendor".

But, why would you want to "change the source code", rather than just
keep the password stuff in a separate file in the first place?

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>
Feb 9 '06 #5
vy**********@gmail.com said:
my question is simple.Can we change the source code at runtime?


The source code may not be available at runtime. But if it is, you can
change it, just like you can change any file - provided there are no
insurmountable obstacles in your way (e.g. lack of permission can be an
issue on some filesystems).

Of course, any changes you make to the source code will not ordinarily
affect the current run of the program. (Possible exception: a C interpreter
that constantly revisits the source code for further instructions.)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Feb 9 '06 #6

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

Similar topics

2
by: nick | last post by:
Hi All. I have a document loaded into browser. Later, I am loading some HTML content (using hidden frame) and replace some part of my document with new content, using innerHTML property. The...
1
by: patrickshroads | last post by:
I just started a new job and no one seems to know the SA password. Here's my plan to change it: 1. I've run a trace for a couple of days to verify that there are no jobs or processes that are...
27
by: frizzle | last post by:
Hi there, I've read in a few places that you should *never* store original passwords in a mySQL DB. Now i wonder if you encrypt it (with MD5 ?), how should i create a lost password function,...
5
by: Guadala Harry | last post by:
What are my options for *securely* storing/retrieving the ID and password used by an ASP.NET application for accessing a SQL Server (using SQL Server authentication)? Please note that this ID and...
0
by: Pavan | last post by:
Hi All, I am using Password Recovery control in order to reset my hashed passwords in ASP .Net 2.0 Beta 2. The system generated password is too difficult to remember, so i am giving Change...
6
by: chsadaki | last post by:
Hello I have a problem in retrieving a row form a table that I created in mysql db. I insert these values in the table 'Bell',password('123'). But the problem is in my php application I cant...
11
by: Kevin O'Brien | last post by:
Hello, I am creating a sign on screen for my application in which I want to store the username and password in a database table. I was thinking of putting a combo box connected to the database...
2
by: Jeff Williams | last post by:
I am developing an application which will allow users (students) to run applications on PC's with elevated rights. This is necessary for some applications which require Administrator rights on the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.