jeremybmerrill / dkimverify Goto Github PK
View Code? Open in Web Editor NEWa pure-Ruby library for validating/verifying DKIM signatures.
License: MIT License
a pure-Ruby library for validating/verifying DKIM signatures.
License: MIT License
It sometimes strips out leading whitespace, replaces line-breaks with whitespace and subtly modifies date formats (mikel/mail#1075). This all in particular breaks the simple
header canonicalization method... I may need to switch to a lower-level mail-parsing library.
Cf. the headers via Ruby:
verify headers: [["From", "\"Raj Goyle \" <[email protected]>"], ["Subject", "Fw: Fw: DISCLOSE"], ["Date", "Wed, 30 Jun 2010 21:14:04 -0400"], ["To", "[email protected]"], ["MIME-Version", "1.0"], ["Content-type", "text/html; charset=Windows-1252"], ["DKIM-Signature", "v=1; a=rsa-sha1; d=bounce.myngp.com; s=ngpweb1; c=simple/simple; q=dns/txt; [email protected]; t=1277946313; h=From:Subject:Date:To:MIME-Version:Content-type; bh=ksBroyqrHHL45kG0qfyLInBv/5U=; b=;"]]
and via the Python reference implementation:
verify headers: [['From', ' "Raj Goyle " <[email protected]>\r\n'], ['Subject', ' Fw: Fw: DISCLOSE\r\n'], ['Date', ' Wed, 30 Jun 2010 21:14:04
-0400\r\n'], ['To', ' [email protected]\r\n'], ['MIME-Version', ' 1.0\r\n'], ['Content-type', ' text/html; charset=Windows-1252\r\n'], ('DKIM-Signature', ' v=1; a=rsa-sha1; d=bounce.myngp.com; s=ngpweb1; c=simple/simple;\r\n\tq=dns/txt; [email protected]; t=1277946313;\r\n\th=From:Subject:Date:To:MIME-Version:Content-type;\r\n\tbh=ksBroyqrHHL45kG0qfyLInBv/5U=;\r\n\tb=;')]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.