Sha256: 1b12f8f36a34192398fff9c4f6f0051fa0137038a121bc41568060afa12ee779
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
#!/usr/bin/ruby # Reads an email in from standard input and signs it require "dkim" domain, selector, keyfile = ARGV key = File.readlines(keyfile).to_s # read the email signer = DKIM::Signer.new(domain, selector, key) message = "" STDIN.each_line do |line| line.gsub!(/\n/, "\r\n") signer.feed(line) message << line end signature = signer.finish # print out the signature then the email puts "#{signature.signature_header}\n#{message}"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iragsdale-rubydkim-0.2 | bin/dkim_sign.rb |