0.1.1 • Published 9 years ago

passgenn v0.1.1

Weekly downloads
2
License
Apache 2.0
Repository
github
Last release
9 years ago

PassGen

A node.js password generator

NPM

To install run

npm install passgenn -g

To use it, do

var passgen = require('passgenn');
var password = passgen.makePass(10, ["caps", "symbols", "letter", "num"]);
console.log(password);

Functions

makePass(length, options); // Generates a password with length characters. Options is a array.
/*
Valid options are
caps -> Adds A-Z
symbols -> Adds symbols
letter -> Adds a-z
num -> Adds 0-9
*/

Example

Having a html file like so,

<html>
  <body>
      <span id="pass"></span>
      <script src="path/to/script.js"></script>
  </body>
</html>

and calling the script like so;

  document.getElementById('pass').innerHTML = passgen.makePass(25, ["caps", "symbols","letter","num"]);

will result in

F;Ba88)Q)[IZpD.b7T}R5)fb@
or
v1nV!b2'JzsD},A][nGv\~Ftf
or
o{'`LR?'FY?~=1hXdIp.H@G%8
or
!{TExL+xfw=+}nH\[^u:6G:l_
0.1.1

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.1.0

9 years ago