Password
i think he means for the database, just use this:
when u add them to database do it like this:
$username =$_POST['username']; $password = md5($_POST['password'];
mysql_query("Insert into bla bla bla VALUES($username,$password)");
then when they log in…
$username =$_POST['username']; $password = md5($_POST['password']); $result = mysql_query("SELECT * FROM table where username=" . $username); $dbpass = mysql_result($result,0,'field_name_for_pass'); if ( $dbpass == $password ) { echo 'logged in'; } else { echo 'denied'; }
That obviously wont work, just a basic structure to how most people do it.
http://www.flash.net/cgi-bin/pw.pl check this out..
i know about the encrypter but how do i actually use the .htaccess and .htpassword files in my website? and what do i put in the files. im n00by at this so plaese help me.
EDIT: al i want is so that when i click on a link on my page that a prompt comes up and asks me for a password. i enter it, then i get in. but i don't want anyone gettin in.
I reckon if you just leave a comment in the source giving a false password unencrypted. It will have 10000's of n00bs confused.
comment in source = <!–1337llama0wn5–>
noob1 - "why isn't this working"
noob2- "omg Its like a basic challenge or something"
noob1 - "I think its encrypted, what do you think"
noob2 - "Yeah it must be,try MD5"
hehe;)
cubeman372 wrote: I reckon if you just leave a comment in the source giving a false password unencrypted. It will have 10000's of n00bs confused.
comment in source = <!–1337llama0wn5–>
noob1 - "why isn't this working"
noob2- "omg Its like a basic challenge or something"
noob1 - "I think its encrypted, what do you think"
noob2 - "Yeah it must be,try MD5"
hehe;)
HAHAHA THAT'S GREAT!
It's also very true!
cubeman372 wrote: I reckon if you just leave a comment in the source giving a false password unencrypted. It will have 10000's of n00bs confused.
comment in source = <!–1337llama0wn5–>
noob1 - "why isn't this working"
noob2- "omg Its like a basic challenge or something"
noob1 - "I think its encrypted, what do you think"
noob2 - "Yeah it must be,try MD5"
hehe;)
LMAO that's great. I can see the fourm post now.
cubeman372 wrote: I reckon if you just leave a comment in the source giving a false password unencrypted. It will have 10000's of n00bs confused.
comment in source = <!–1337llama0wn5–>
noob1 - "why isn't this working"
noob2- "omg Its like a basic challenge or something"
noob1 - "I think its encrypted, what do you think"
noob2 - "Yeah it must be,try MD5"
hehe;)
LMAO that's great. I can see the fourm post now.