diceware 0.9.5 (new formula)

Diceware is a method for generating passphrases using ordinary d6 dice
and a predefined word list[1].

This changeset adds Uli Fouquet's `diceware` application, which
implements Diceware for the command line.

References:

  1. https://en.wikipedia.org/wiki/Diceware

Closes #32318.

Signed-off-by: Jan Viljanen <527069+javian@users.noreply.github.com>
This commit is contained in:
Ben Webber 2018-09-21 05:18:30 +00:00 committed by Jan Viljanen
parent d4a82946ca
commit 7a55511ede

18
Formula/diceware.rb Normal file
View file

@ -0,0 +1,18 @@
class Diceware < Formula
include Language::Python::Virtualenv
desc "Passphrases to remember"
homepage "https://github.com/ulif/diceware"
url "https://github.com/ulif/diceware/archive/v0.9.5.tar.gz"
sha256 "70c5884eed7f9d55204075cc8816ef7259000a0548f930a98d51132eef5c90ad"
depends_on "python"
def install
virtualenv_install_with_resources
end
test do
assert_match(/(\w+)(\-(\w+)){5}/, shell_output("#{bin}/diceware -d-"))
end
end