Results 1 to 4 of 4

Thread: Encrypted Password script

  1. #1
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Encrypted Password script

    1) Script Title: Encrypted Password script

    2) Script URL (on DD):http://www.dynamicdrive.com/dynamicindex9/password.htm

    3) Describe problem: i like this script but you can only have 1 login username and password
    is there a way for it to do it automaticly like the one to register on this fourm and just get it to notify you who has made an account and ban someone if nessary

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Don't bother.

    This script doesn't really protect anything. It just makes it hard to access. For a secure method, you need a server side script, such as one using PHP.
    In addition to that, storing any information would require a server side language anyway, so there's no point in using a javascript password if you need to do things like notifications and banning
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    This script doesn't really protect anything. It just makes it hard to access. For a secure method, you need a server side script, such as one using PHP.
    Not really. Obfuscation of the page name is really a server-side method; this script is just a front-end to this most basic of security features. Assuming the server is configured correctly, it's as effective as a simple PHP script asking for a single password.
    3) Describe problem: i like this script but you can only have 1 login username and password
    This problem is solved by my version, which really should have replaced this one by now.
    is there a way for it to do it automaticly like the one to register on this fourm and just get it to notify you who has made an account and ban someone if nessary
    No. The measure of server-side security used by this script is handy, but not at all flexible, and it won't stretch to things like this. If you want a simple PHP/MySQL login script, I have one here.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx it has a small problem i was trying to use it and this is what came up just after copying and pasting it

    this is all it comes up with
    HTML Code:
    create table users (id int auto_increment, nick text, password text, email text, primary key(id)); 
    Username:  
    Password:  
    Remember me?  
     
    Register 
    
    Error: User Doesn't Exist
    The username/password combination you have entered is not in our database. Please check that you have entered your username and password correctly. If you have not yet registered, you may do so here. 
    
    > Username:  > Password:  > Email:  
      
    
    20) $errArr[0] = 'Username cannot be longer than 20 characters'; if(strlen($_POST['pass']) < 7) $errArr[1] = 'Password must be longer than 7 characters'; if(empty($errArr[2]) && !is_email($_POST['email'])) $errArr[2] = 'This is not a valid email address'; for($i = 0; $i < count($errArr); $i++) if(!empty($errArr[$i])) die(registerForm($valArr, $errArr)); $pass = md5($pass); // Actual registration mysql_query("insert into $userstable (nick, password, email) values ('$nick', '$pass', '$email');") or die(mysql_error()); login(); } function userExists($nick) { head('Error: User Already Exists'); ?> 
    Error: User Already Exists
    The username "" already exists in our database. Please check that you have entered your username and password correctly. 
    
    Download
    can you tell me if i dont something wrong how i change it to send details to my email if the user can do on even if i havent approved them and if they can register

    thx for your help

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •