author Abhi Beckert category Hash command #!/usr/bin/ruby # fetch selected text from STDIN selectedText = gets # create sha1 hash require 'digest/sha1' hash = Digest::SHA1.hexdigest(selectedText) # output hash print hash description Convert the selected text to a sha1 hash. input selectedtext input_fallback entirecontent name SHA1 output replaceselection scope inputfield uuid 19F272BA-1369-48A7-B10A-4F25EF5B9DD3 isDefaultBundle