npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

easyphrase

v1.1.0

Published

Password Generator based on the EFF dice-based passphrase generator.

Downloads

4

Readme

easyphrase

Get it as a cli tool via NPM:

npm install -g easyphrase

Or get it the JS to add the generator to your website by cloning this repo or via NPM:

npm install easyphrase

You can find the repo at Github: https://github.com/TimmsIO/easyphrase

The NPM package is here: https://www.npmjs.com/package/easyphrase

There is a live demo here: http://timms.io/utilities/easyphrase

Mission Statement

Easyphrase sets out to be a simple passphrase generator to promote better security practices. It is intended to make it easy for administrators to encourage and demonstrate strong passphrases in corporate environments. Easyphrase should be easy to use, and produce passwords that are strong against brute force and dictionary based attacks while reducing the effects of security fatigue on the end user.

Features

Easyphrase uses a modified version of the EFF's dice passphrase generator technique for generating strong passwords. To keep the method "fun", easyphrase outputs the results of die throws and dictionary lookups for a more engaging experience. Easyphrase can also generate passphrases in a non-verbose manner.

As an opt-out function, easyphrase will insert a random numeric character at a random index in the generated passphrase.

Easyphrase is also capable of generating passphrases in a list of any length.

Generator Arguments

-s, --silent Output only the generated password

-q, --quantity <n> The quantity of passwords to output, as an integer

-l, --less-secure Do not include the randomly placed integer

Sample Output

Standard Output

$easyphrase
ROLLING!
Dice Roll Results:  62326; 25341; 46656; 55243; 53312; 62526;
Rolls Generated these words:   trench, scored, enforced, tile, sneer, refinish
Your new password is:
tr7enchscoredenforcedtilesneerrefinish

Silent, Multiple, Less Paranoid Output

$ easyphrase -slq 2
treadmillsubsonicstereodirectlytacticsimpeding
unitscruffypungentstingilyengagingwalrus

The Web Interface

After installing via npm, a minified js file is immediately available in the easyphrase/dist folder.

Easyphrase can then be added to a webpage in one of two ways:

The easy but ugly way

I am not a web designer. Adding easyphrase to your website this way will prove that.

All you have to do is add this element to your webpage and easyphrase will build all the fields and form elements it needs to run:

<div id="easyphrase"></div>

The slightly harder but prettier way

All of the DOM element ids that easyphrase searches for can be overridden. If an element with the correct id exists on your page, easyphrase will bind to it and use it instead of generating a new one.

If easyphrase cannot find any of the DOM element ids it needs, it will generate the default one in the id="easyphrase" element. Effectively, this means you can override as many or as few of the defaults as you want.

Here are the IDs to override and their purpose:

| ID | Purpose | |----------------------------------|-----------------------------------------------------------------------------| | id="easyphrase-output-element" | Output of the generator function will be added to this element's .innerText | | id="easyphrase-generate-button" | Triggers the generator function | | id="easyphrase-copy-button" | Copies the single last generated password to clipboard | | id="easyphrase-silent-checkbox" | Turn off/on verbose mode | | id="easyphrase-lessSec-checkbox" | Turn off/on insertion of a random number into the phrase | | id="easyphrase-quantity-input" | Specify a numeric quantity of passphrases to generate |

Thanks

The underpinning method used to generate passwords is based on the EFF's dice passphrase generator.

Thanks to the hard working folks at the EFF for their fight to keep the internet free and safe.

To maintain attribution of this wordlist, the following should be added to all compiled files:

The included word list is modified from that provided by the Electronic Frontiers Foundation.
The original list and its intended uses can be found here: https://www.eff.org/dice
The author of this software claims no ownership of the list.
The list is used in good faith for no commercial purpose in order to promote a more secure web.

License: MIT

MIT License

Copyright (c) 2017 Morgan Timms

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.