aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SharedSupport/Default Bundles/MD5 Hash.spBundle/command.plist29
-rw-r--r--SharedSupport/Default Bundles/SHA1 Hash.spBundle/command.plist27
-rw-r--r--SharedSupport/Default Bundles/SHA1 Hash.spBundle/echo-n1
3 files changed, 57 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>category</key>
+ <string>Hash</string>
+ <key>command</key>
+ <string>#!/usr/bin/ruby
+
+require 'digest/md5'
+
+print Digest::MD5.hexdigest(gets)
+</string>
+ <key>input</key>
+ <string>selectedtext</string>
+ <key>input_fallback</key>
+ <string>entirecontent</string>
+ <key>keyEquivalent</key>
+ <string></string>
+ <key>name</key>
+ <string>MD5</string>
+ <key>output</key>
+ <string>replaceselection</string>
+ <key>scope</key>
+ <string>inputfield</string>
+ <key>uuid</key>
+ <string>8CAA33B3-D168-47FC-A9BE-EA5A8576E380</string>
+</dict>
+</plist>
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>category</key>
+ <string>Hash</string>
+ <key>command</key>
+ <string>#!/usr/bin/ruby
+
+require 'digest/sha1'
+
+print Digest::SHA1.hexdigest(gets)
+</string>
+ <key>input</key>
+ <string>selectedtext</string>
+ <key>input_fallback</key>
+ <string>entirecontent</string>
+ <key>name</key>
+ <string>SHA1</string>
+ <key>output</key>
+ <string>replaceselection</string>
+ <key>scope</key>
+ <string>inputfield</string>
+ <key>uuid</key>
+ <string>19F272BA-1369-48A7-B10A-4F25EF5B9DD3</string>
+</dict>
+</plist>
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