Password checker v.1.0.2

Page 1 of 2 12 LastLast
Results 1 to 25 of 39
  1. #1
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    wink Password checker v.1.0.2

    Some people use simple passwords, that's why I released this.
    I know it's simple, but yeah some people certainly need this

    Screen:
    Code:
    <link type="text/css" rel="stylesheet" href="../Public/Styles/Default/CSS/login.css"/>
    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.pack.js"></script>
    </head>
    <style type="text/css">#weak,#medium{border-right:solid 1px #DEDEDE;}#sm{margin:0px;padding:0px;height:14px;font-family:Tahoma,Arial,sans-serif;font-size:9px;}#sm ul{border:0px;margin:0px;padding:0px;list-style-type:none;text-align:center;}#sm ul li{display:block;float:left;text-align:center;padding:0px 0px 0px 0px;margin:0px;height:14px;}.nrm{width:84px;color:#adadad;text-align:center;padding:2px;background-color:#F1F1F1;display:block;vertical-align:middle;}.red{width:84px;color:#FFFFFF;text-align:center;padding:2px;background-color:#FF6F6F;display:block;vertical-align:middle;}.yellow{width:84px;color:#FFFFFF;text-align:center;padding:2px;background-color:#FDB14D;display:block;vertical-align:middle;}.green{width:84px;color:#FFFFFF;text-align:center;padding:2px;background-color:#A0DA54;display:block;vertical-align:middle;}</style>
    <style>.input-ok,.input-ok-content{border:1px solid #00CC00;}.pane-smeetpanes-registration-form .badge-100-percent-free{background:url("http://webcdn.smeet.com/sites/all/themes/smeet/smeettheme/misc/images/panes/smeetpanes/registration-form/badge.gif") no-repeat scroll left top transparent;color:#000000;font-size:12px;font-weight:bold;height:66px;text-align:center;text-transform:uppercase;width:66px;}.pane-smeetpanes-registration-form .badge-100-percent-free span{display:block;line-height:13px;padding:20px 0 0;}.pane-smeetpanes-registration-form .form-footer-left{float:left;}.pane-smeetpanes-registration-form .form-footer-right{float:right;width:195px;}</style>
    <script type="text/javascript">
    function evalPwd(s)
    {
        var cmpx = 0;
        
        if (s.length >= 6)
        {
            cmpx++;
            
            if (s.search("[A-Z]") != -1)
            {
                cmpx++;
            }
            
            if (s.search("[0-9]") != -1)
            {
                cmpx++;
            }
            
            if (s.length >= 8 || s.search("[\x20-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]") != -1)
            {
                cmpx++;
            }
        }
        
        if (cmpx == 0)
        {
            document.getElementById("weak").className = "nrm";
            document.getElementById("medium").className = "nrm";
            document.getElementById("strong").className = "nrm";
        }
        else if (cmpx == 1)
        {
            document.getElementById("weak").className = "red";
            document.getElementById("medium").className = "nrm";
            document.getElementById("strong").className = "nrm";
        }
        else if (cmpx == 2)
        {
            document.getElementById("weak").className = "yellow";
            document.getElementById("medium").className = "yellow";
            document.getElementById("strong").className = "nrm";
        }
        else
        {
            document.getElementById("weak").className = "green";
            document.getElementById("medium").className = "green";
            document.getElementById("strong").className = "green";
        }
    }
    </script>
    <script type="text/javascript">
    
    
    function checkBd() {
        incomingd = $('#bdday').val();
        incomingm = $('#bdmonth').val();
        incomingy = $('#bdyear').val();
        birthdayIsValid = 1;
        if( incomingd >= 1 && incomingd <= 31 ) {    
        } else {
            birthdayIsValid = 0;
        }
        if( incomingm >= 1 && incomingm <= 12 ) {
        } else {
            birthdayIsValid = 0;
        }
        if( incomingy >= 1970 && incomingy <= 2011 ) {
        } else {
            birthdayIsValid = 0;
        }
    }
    
    
    function doCheckMail() {
        MailisFree = 1;
        name = $("#formemail").val();
        $.get("mailcheck.php", {ajaxAct: "check_habbo_name", mail: name}, function(data) {
        
    
    
        
        
            if( $.trim(data) == "0" ) {
                $("#habbo_name_message_box").html("<h3>Nos enregistrements indiquent que cette adresse mail est déjà utilisée.</h3> Tu ne peux pas utiliser la même adresse mail qui est déjà utilisée par un autre joueur.");
                $("#habbo_name_message_box").removeClass().addClass("errormsg");
                MailisFree = 0;
                } else {
                $("#habbo_name_message_box").html("<img src=\"http://icons.iconarchive.com/icons/visualpharm/must-have/256/Check-icon.png\" style=\"width: 12px; position: absolute; height: 12px; top: 325px; bottom: auto; left: 550px; right: auto\";>");
                $("#habbo_name_message_box").removeClass().addClass("");
            }
        });
        
        
    }
    
    
    $().ready(function() {
        $('#formemail').keypress(function(e){
            if(e.which == 13){
                doCheckMail();
            }
        });
    
    
        $('#formemail').blur(function(e){
            doCheckMail();
        });
    
    
        $("#register_step_one").validate({
            submitHandler: function(form) {
                checkBd();
                if( birthdayIsValid === 1 ) {
                    doCheckMail();
                    if (MailisFree === 1) {
                        form.submit();
                    }
                } else {
                    errorForm();
                }
            },
        
    
    
            rules: {
                email: {
                    required: true,
                    email: true
                },
                password: {
                    required: true,
                    minlength: 5
                },
        
                cpassword: {
                    required: true,
                    minlength: 5,
                    equalTo: "#formpassword"
                }
            },
            
            
            messages: {
                email: "Tu dois indiquer une adresse email valide.",
                password: "Ce champ est requis.",
                cpassword: "Ce champ est requis."
            }
        });    
    });
    
    
    emailIsValid = 0;
    usernameIsValid = 0;
    passwordIsValid = 0;
    passwordIsConfirmed = 0;
    birthdayIsValid = 0;
    MailisFree = 0;
    
    
    
    
    function errorForm() {
        $('#bd_err').removeClass("display_none");
    }
    
    
    </script>
    <style type="text/css">input{background-color:#E2E4E6;}</style>
    </head>
    <body id="page-request-password">
    <div id="page-wrapper">
    <div id="page-shadow-wrapper">
     
    
    
     
     
    <div id="page-visual"></div>
     
     
    <div id="page-content-wrapper">
    <div id="page-content" class="clear-block">
     
     
    
    
    <label for="password"><strong><font color="#000A14">Password</font></strong>&nbsp;<span>(<a href="#" style="cursor: help;" title="Les mots de passe doivent faire entre 5 et 15 caract&egrave;res">?</a>)</span></label><br/>
    <input type="password" name="password" id="formpassword" onkeyup="evalPwd(this.value);"/>
    <div id="sm"><ul><li id="weak" class="nrm">Weak</li><li id="medium" class="nrm">Medium</li><li id="strong" class="nrm">Strong</li></ul></div>
    <br/>
    Like for v.2
    Upcoming update:
    Screenshot by Lightshot
    Last edited by MineTerms; 08-12-13 at 03:24 PM.


  2. #2
    The Shrewd Rey is offline
    Grand MasterRank
    Oct 2011 Join Date
    HellLocation
    1,347Posts

    Re: Password checker

    THANKS ! goodjob dude <3

  3. #3
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    Re: Password checker

    Quote Originally Posted by Sector DUCT View Post
    THANKS ! goodjob dude <3
    You're welcome.

  4. #4
    Grand Master Emily is offline
    Grand MasterRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Password checker

    Well, for me it's your own responsibility what kind of password you use. Anyways, good release, really simple however.

  5. #5
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: Password checker

    Use the [ CODE ] [ /CODE ] tags please :')

  6. #6
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    Re: Password checker

    Quote Originally Posted by HillBilly View Post
    Use the [ CODE ] [ /CODE ] tags please :')
    Alright.

  7. #7
    Not so spooky... MrSpooks is offline
    Grand MasterRank
    May 2010 Join Date
    Under a rockLocation
    1,068Posts

    Re: Password checker

    Ahhhh i like! thank you i need something like this! Not for habbo but another site! thanks! :)

  8. #8
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    Re: Password checker

    Quote Originally Posted by MrSpooks View Post
    Ahhhh i like! thank you i need something like this! Not for habbo but another site! thanks! :)
    You're welcome!

  9. #9
    "(still lacks brains)" NoBrain is offline
    Grand MasterRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: Password checker

    Would be better if it outlined the actual password box with the colour, but I'm just a design freak ;P

    Nice release!

  10. #10
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    Re: Password checker

    Thanks for the tip!

  11. #11
    Member Mario1134 is offline
    MemberRank
    Oct 2011 Join Date
    26Posts

    Re: Password checker

    Exploits?

  12. #12
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    Re: Password checker

    Quote Originally Posted by Mario1134 View Post
    Exploits?
    There are no exploits.

  13. #13
    Grand Master Emily is offline
    Grand MasterRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Password checker

    Quote Originally Posted by Mario1134 View Post
    Exploits?
    How would be there any exploit in this? XD

  14. #14
    Developer Eronisch is offline
    Grand MasterRank
    Jul 2009 Join Date
    The NetherlandsLocation
    1,328Posts

    Re: Password checker

    Why are you using JQuery and Javascript?

    Why are you doing this:
    Code:
    document.getElementById("strong")
    When you can do this in JQuery:

    Code:
    $('#strong')
    Nonetheless, thanks!

  15. #15
    ~|=_=|~ Receiver is offline
    Grand MasterRank
    Sep 2013 Join Date
    PlutoLocation
    624Posts

    Re: Password checker

    Where exactly do you put this? I'm thinking on the password register page. Just wanted to be sure.

  16. #16
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: Password checker

    Quote Originally Posted by Receiver View Post
    Where exactly do you put this? I'm thinking on the password register page. Just wanted to be sure.
    On the client page ofcourse!

    Quote Originally Posted by Eronisch View Post
    Why are you using JQuery and Javascript?

    Why are you doing this:
    Code:
    document.getElementById("strong")
    When you can do this in JQuery:

    Code:
    $('#strong')
    Nonetheless, thanks!
    Thats jQuery. Seems like he prefers to use javascript. In the end it doesnt really matter :)

  17. #17
    Sorcerer Supreme Bow is offline
    Member +Rank
    Jan 2012 Join Date
    407Posts

    Re: Password checker

    Would be nice to separate the CSS from your actual code. It looks messy the way you have it (code tags or not).

    Nonetheless, thanks.

  18. #18
    Loyalty Vaulient is offline
    Grand MasterRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: Password checker

    Now this is some useful release. Great work.

  19. #19
    Newbie zVulnerable is offline
    MemberRank
    Dec 2013 Join Date
    10Posts

    Re: Password checker

    How do i put it on the register page?

  20. #20
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    Re: Password checker

    Quote Originally Posted by Vaulient View Post
    Now this is some useful release. Great work.
    Glad that I could help.

    I'm working on an advanced version.

  21. #21
    Loyalty Vaulient is offline
    Grand MasterRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: Password checker

    Quote Originally Posted by MineTerms View Post
    Glad that I could help.

    I'm working on an advanced version.
    Will it include password suggestions and while you;re at it , you could try making username checkers :)

  22. #22
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    Re: Password checker

    Quote Originally Posted by Vaulient View Post
    Will it include password suggestions and while you;re at it , you could try making username checkers :)
    Thanks for the tip! I will work on it!

  23. #23
    Loyalty Vaulient is offline
    Grand MasterRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: Password checker

    Quote Originally Posted by MineTerms View Post
    Thanks for the tip! I will work on it!
    Wish you the best of luck mate :)

  24. #24
    Evil Italian Overlowrd Droppy is offline
    Grand MasterRank
    Feb 2012 Join Date
    /home/droppyLocation
    2,080Posts

    Re: Password checker

    I think its perfect! Gonna to help a lot, thanks.

  25. #25
    Newbie MineTerms is offline
    MemberRank
    Oct 2013 Join Date
    20Posts

    Re: Password checker

    Quote Originally Posted by Droppy View Post
    I think its perfect! Gonna to help a lot, thanks.
    You're welcome mate!



Page 1 of 2 12 LastLast

Advertisement