robertdavidgraham / hunter-dkim

Discusses how to verify DKIM signatures in old emails, namely one of the Hunter Biden emails in the news
96 stars 12 forks source link

relaxed verification #2

Open stevecheckoway opened 4 years ago

stevecheckoway commented 4 years ago

The FAQ (which is a nice addition) says that due to being quoted-printable, there's no place to add a space. I'm not entirely sure what you mean by that.

$ diff -u Meeting\ for\ coffee.eml change-space.eml
--- Meeting for coffee.eml  2020-10-30 00:07:03.000000000 -0400
+++ change-space.eml    2020-10-30 12:50:07.000000000 -0400
@@ -46,7 +46,7 @@
 Content-Transfer-Encoding: quoted-printable
 Mime-Version: 1.0 (1.0)

-Dear Hunter, thank you  for inviting me to DC and giving an opportunity to m=
+Dear Hunter,                                       thank you  for inviting me to DC and giving an opportunity to m=
 eet your father and spent some time together. It's realty an honor and pleas=
 ure.
 As we spoke yesterday evening, would be great to meet today for a quick coff=
$ ./verify.py *.eml
Meeting for coffee.eml: DKIM signature verified
change-space.eml: DKIM signature verified
forgery.eml: DKIM signature verification failed

I can't imagine what problems not verifying the exact number of spaces people are worried about with this, but it certainly seems possible to add spaces and still pass verification.