1.1.1 • Published 8 years ago

jquery-password-generator-plugin v1.1.1

Weekly downloads
17
License
MIT
Repository
github
Last release
8 years ago

Password Generator jQuery Plugin

Fast jQuery plugin for generating strong random passwords.

Live DEMO

Password Generator Plugin

Download

Usage examples

Basic usage

$.passgen()
<script src="jquery.js"></script>
<script src="dist/jquery-password-generator-plugin.min.js"></script>
<script>

  $(document).ready(
    function(){
      alert('Generated password: ' + $.passGen());
    }
  );

</script>

Usage with custom options

$.passGen({'length' : 10, 'numeric' : true, 'lowercase' : true, 'uppercase' : true, 'special' : false})

You can redefined all or specific options:

OptionDescriptionDefault value
lengthNumber of characters10
numbersUse numbers (0, 1, 2, etc...)true
lowercaseUse lowercase letters (a, b, c, etc...)true
uppercaseUse uppercase letters (A, B, C, etc...)true
specialUse special characters (!, @, #, $, etc...)false

Local Project Setup

Install required npm mobules

sudo npm install

Install bower dependencies

bower install

Grunt commands

Run server

grunt serve

If everything goes OK, the server will be available at: http://localhost:7777

Tests can be found at: http://localhost:7777/test/jquery-password-generator-plugin.html

Run tests

grunt test

Test results will be available at the console

Building the project

grunt build

Generated files will be available at the dist folder:

dist/jquery.jquery-password-generator-plugin.js
dist/jquery.jquery-password-generator-plugin.min.js

License

MIT © Sergey Sokurenko