author Abhi Beckert category Hash command #!/usr/bin/ruby # fetch selected text from STDIN selectedText = gets # create sha1 hash require 'digest/md5' hash = Digest::MD5.hexdigest(selectedText) # output hash print hash description Convert the selected text to an MD5 hash. input selectedtext input_fallback entirecontent keyEquivalent name MD5 output replaceselection scope inputfield uuid 8CAA33B3-D168-47FC-A9BE-EA5A8576E380 isDefaultBundle