Password changing using mutation strings

V

vysakhpillai

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?
 
S

santosh

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.
 
V

Vladimir S. Oka

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).
 
K

Kenneth Brody

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:[email protected]>
 
R

Richard Heathfield

(e-mail address removed) 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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top