Saturday, May 24, 2014

Generate Password Using Jquery

Hi friends.In this post i am going to show how to Generate Password Using Jquery using Passy Jquery Plugin.

Passy is a jQuery plugin.It is used to rate the password and generate new passwords.

Features:

1.Check password strength.
2.Checks lowercase, uppercase, numbers, punctiation and foreign characters.
3.Compare passwords with pattern like '!#$*+-.:?@^'.
4.Generate new passwords.

JQuery Functions

<script type="text/javascript">
    var $input = $('#input');
    var $output = $('#output');
    $('#pwd').click(function() {
        $input.passy('generate', 8);
    });
</script>

HTML Form

<form method="post" action="#">
          Enter your password :
          <input type="text" id="input" />
          <a href="javascript:void(0);" id="pwd">generate</a>
        </form>

Please share your comments and feebback.Thanks.Please subscribe my updates via email.

No comments:

Post a Comment