Dmp
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.
$ dmp about
____ __ __ ____
| _ \ | \/ | | _ \
| | | | | |\/| | | |_) |
| |_| | | | | | | __/
|____/ |_| |_| |_|
version: 0.1.3
author: @__franccesco
homepage: https://github.com/franccesco/dmp
learn more: https://codingdose.info
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
$ dmp gen 5
- Passphrase: tavern silly afar luncheon cement
Help
Commands:
dmp about # Displays version number and information
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.