homebrew-core/Formula/aescrypt.rb

30 lines
1.1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Aescrypt < Formula
desc "Program for encryption/decryption"
homepage "http://aescrypt.sourceforge.net/"
url "http://aescrypt.sourceforge.net/aescrypt-0.7.tar.gz"
sha256 "7b17656cbbd76700d313a1c36824a197dfb776cadcbf3a748da5ee3d0791b92d"
2010-05-21 00:25:19 +00:00
2014-12-12 09:03:30 +00:00
bottle do
2016-02-16 00:23:42 +00:00
cellar :any_skip_relocation
2016-09-25 17:24:01 +00:00
sha256 "2250bd07f689721287269dc70c504b4f08ac2a02b5550ad9f0a51dca60ed6f9a" => :sierra
2016-02-16 00:23:42 +00:00
sha256 "0cd940c7c9e59104746a8f83f92a06e703e7f98195a202d20516c03b588fd63f" => :el_capitan
sha256 "660c8a9266d7f85e699fb5bfabb82c508a66d303b2a2057c9c70a3c70fed43f6" => :yosemite
sha256 "a0bf8895165037991bf5b33be5c995e9b68a1d05898003a0ef45adb7aa3d3da9" => :mavericks
2014-12-12 09:03:30 +00:00
end
2010-05-21 00:25:19 +00:00
def install
system "./configure"
system "make"
bin.install "aescrypt", "aesget"
end
test do
(testpath/"key").write "kk=12345678901234567890123456789abc0"
2016-06-05 23:53:18 +00:00
original_text = "hello"
cipher_text = pipe_output("#{bin}/aescrypt -k #{testpath}/key -s 128", original_text)
deciphered_text = pipe_output("#{bin}/aesget -k #{testpath}/key -s 128", cipher_text)
assert_not_equal original_text, cipher_text
assert_equal original_text, deciphered_text
2010-05-21 00:25:19 +00:00
end
end