Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Fix my prog...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 24812 of 27670
Post > Topic >>

Re: Fix my program

by Richard <devr_@[EMAIL PROTECTED] > Mar 5, 2008 at 03:33 PM

Zom-B <mark.jeronimus@[EMAIL PROTECTED]
> writes:

> Comparing strings with == or != is the same as comparing the memory
> locations where both strings are stored, which are of course
> different. Try strcmp(password, "november13") instead. Note that this
> needs the include "#include <string.h>".
>
> Moreover, it is always a bad idea to store the password as plain text
> in the source code. Anyone obtaining a copy of either the source or
> executable can see the password with minimal effort. In fact, this is
> exactly how I once "cracked" the trial version of UniVBE when I was a
> kid.

Wow. What a whoosh.
 




 1 Posts in Topic:
Re: Fix my program
Richard <devr_@[EMAIL   2008-03-05 15:33:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 22:10:26 CDT 2008.