GithubHelp home page GithubHelp logo

luizeof / dkimverify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremybmerrill/dkimverify

0.0 0.0 0.0 46 KB

a pure-Ruby library for validating/verifying DKIM signatures.

License: MIT License

Ruby 100.00%

dkimverify's Introduction

dkimverify

a gem for verifying DKIM signatures in Ruby

this gem does not sign mail messages (but a PR to enable it would likely be accepted, I just have no use for it.)

I'm pretty sure this actually works and I'm using it in production.

how to use

Dkim::Verifier.new(eml_filepath).verify!

the verify! method will return:

  • true if the signature verifies
  • false if no signature is present, and,
  • raise Dkim::DkimError (or a child error) if the signature is present but does not verify.

with a debt of gratitude to:

not yet implemented

checking expiration dates (x=, t=) accounting for length limits (l= tag) tests (which I really ought to add) checking multiple dkim signature header lines (probably easy)

by

Jeremy B. Merrill The New York Times April 2017

dkimverify's People

Contributors

luizeof avatar jeremybmerrill avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.