Skip to content

Commit

Permalink
argon2 20160406
Browse files Browse the repository at this point in the history
Closes #108.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
  • Loading branch information
thibaultcha authored and apjanke committed Apr 6, 2016
1 parent 4b9a78b commit d859dc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/argon2.rb
@@ -1,8 +1,8 @@
class Argon2 < Formula
desc "Password hashing library and CLI utility"
homepage "https://github.com/P-H-C/phc-winner-argon2"
url "https://github.com/P-H-C/phc-winner-argon2/archive/20151206.tar.gz"
sha256 "29f9eb6d84bfe29604c48830432aa030e96158d66e85a2c83b115e29eb025e85"
url "https://github.com/P-H-C/phc-winner-argon2/archive/20160406.tar.gz"
sha256 "fbfbea50ebdaddd2b945ee877c8e47b7863c080ee2238603ed6918a84952dc3c"

bottle do
cellar :any
Expand All @@ -13,13 +13,13 @@ class Argon2 < Formula

def install
system "make"
include.install "src/argon2.h"
include.install "include/argon2.h"
lib.install "libargon2.dylib"
bin.install "argon2"
end

test do
assert_equal "$argon2i$m=65536,t=2,p=4$c29tZXNhbHQAAAAAAAAAAA$Q38e04oLanBHl/MHZra3ypCikyWHhVYRVbekTeGl03o\n",
assert_equal "$argon2i$v=19$m=65536,t=2,p=4$c29tZXNhbHQ$LY26Xe109v98jqoS57OD9ZBwh1CAQavxHyHx1IQ2g/A\n",
pipe_output("echo -n password | #{bin}/argon2 somesalt -t 2 -m 16 -p 4 | grep Encoded | awk '{print $2}'")
end
end

0 comments on commit d859dc5

Please sign in to comment.