Project

dmp

0.0
No commit activity in last 3 years
No release in over 3 years
Generates a passphrase using EFF's long wordlist.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.1
~> 0.8
~> 0
 Project Readme

Dmp

Build Status Coverage Status Gem Version

DMP (or Dice My Pass) is a simple passphrase generator that gives you a passphrase of the desired length using EFF's long wordlist. This little tool was only created for a blog post on how to create a Ruby gem at codingdose.info (WIP) and should be NOT used for production, can't say much if you like it though.

Installation

Add this line to your application's Gemfile:

gem 'dmp'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dmp

Usage

You can use it as a library in your code.

irb(main):001:0> require 'dmp'
=> true
irb(main):002:0> Dmp.gen_passphrase(4)
=> ["discount", "stove", "rubbing", "underage"]

Or you can use the CLI if you want to execute it in the terminal.

Generate a passphrase

$ dmp
- Passphrase: bagpipe sprinkled unscented trespass splice outlet headlamp

Generate a passphrase and copy it to the clipboard

- Passphrase: reconvene glimmer treading swerve zebra visibly veal
- Copied to clipboard.

Generate a passphrase of your desired length and check if the password appears in HIBP datasets

$ dmp gen 5 -H
- Passphrase: tavern silly afar luncheon cement
- Password is safe to use.

Warns you if your password has been discovered in a HIBP dataset.

- Passphrase: angular
- WARNING: Passphrase vulnerable 91 times!

Check a password of yours

$ dmp check
Enter your password, press ENTER when you're done.
Password (hidden): ****
- Your password appears in 213580 data sets!

Help

Commands:
  dmp about           # Displays version number and information
  dmp check           # Check if a password/passphrase is vulnerable.
  dmp gen [length]    # Generate a passphrase of the desired length.
  dmp help [COMMAND]  # Describe available commands or one specific command

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/franccesco/dmp. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Dmp project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.