468,241 Members | 1,586 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,241 developers. It's quick & easy.

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 3323

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by patrickshroads | last post: by
27 posts views Thread by frizzle | last post: by
5 posts views Thread by Guadala Harry | last post: by
reply views Thread by Pavan | last post: by
6 posts views Thread by chsadaki | last post: by
11 posts views Thread by Kevin O'Brien | last post: by
2 posts views Thread by Jeff Williams | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.