random-password

Generates a random password of specified length containing a mixture of alpha-numeric characters, and the characters: ! # $ % & * + ? ~ @

View on GitHub

random-password

for Meteor

A Meteor Package to generate a random password of specified length containing a mixture of upper and lowercase alpha-numeric characters, and the special characters: ! # $ % & * + ? ~ @

Uses seedrandom.js by David Bau for random number generation

DEFAULT:

usage:

meteor add nsardo:random-password

import { generateRandomPassword } from "meteor/nsardo:random-password";

// this will create a random password of length 8, and 
// a 20% chance of special chars for each letter
let pw = generateRandomPassword( 8 );

OR

// this will create a random password of length 8, special characters 
// having a 50% chance of showing up each letter
let pw = generateRandomPassword( 8, 50 );