From 78a304974670b5feb06a7eea78ef9d1140d6d296 Mon Sep 17 00:00:00 2001 From: abhibeckert Date: Thu, 23 Jun 2011 21:06:57 +0000 Subject: add MD5 and SHA1 hash bundles (#415) --- .../MD5 Hash.spBundle/command.plist | 29 ++++++++++++++++++++++ .../SHA1 Hash.spBundle/command.plist | 27 ++++++++++++++++++++ .../Default Bundles/SHA1 Hash.spBundle/echo-n | 1 + 3 files changed, 57 insertions(+) create mode 100644 SharedSupport/Default Bundles/MD5 Hash.spBundle/command.plist create mode 100644 SharedSupport/Default Bundles/SHA1 Hash.spBundle/command.plist create mode 100644 SharedSupport/Default Bundles/SHA1 Hash.spBundle/echo-n (limited to 'SharedSupport') diff --git a/SharedSupport/Default Bundles/MD5 Hash.spBundle/command.plist b/SharedSupport/Default Bundles/MD5 Hash.spBundle/command.plist new file mode 100644 index 00000000..6ad3635d --- /dev/null +++ b/SharedSupport/Default Bundles/MD5 Hash.spBundle/command.plist @@ -0,0 +1,29 @@ + + + + + category + Hash + command + #!/usr/bin/ruby + +require 'digest/md5' + +print Digest::MD5.hexdigest(gets) + + input + selectedtext + input_fallback + entirecontent + keyEquivalent + + name + MD5 + output + replaceselection + scope + inputfield + uuid + 8CAA33B3-D168-47FC-A9BE-EA5A8576E380 + + diff --git a/SharedSupport/Default Bundles/SHA1 Hash.spBundle/command.plist b/SharedSupport/Default Bundles/SHA1 Hash.spBundle/command.plist new file mode 100644 index 00000000..a68eae1f --- /dev/null +++ b/SharedSupport/Default Bundles/SHA1 Hash.spBundle/command.plist @@ -0,0 +1,27 @@ + + + + + category + Hash + command + #!/usr/bin/ruby + +require 'digest/sha1' + +print Digest::SHA1.hexdigest(gets) + + input + selectedtext + input_fallback + entirecontent + name + SHA1 + output + replaceselection + scope + inputfield + uuid + 19F272BA-1369-48A7-B10A-4F25EF5B9DD3 + + diff --git a/SharedSupport/Default Bundles/SHA1 Hash.spBundle/echo-n b/SharedSupport/Default Bundles/SHA1 Hash.spBundle/echo-n new file mode 100644 index 00000000..56520c7b --- /dev/null +++ b/SharedSupport/Default Bundles/SHA1 Hash.spBundle/echo-n @@ -0,0 +1 @@ +6f1ed002ab5595859014ebf0951522d9 -- cgit v1.2.3