[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Poor man's encrypted e-mail



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Unfortunately some of my friends can't use encrypted e-mail at work or
for other reasons. On the other hand almost anyone who can read e-mail
can also open encrypted pdf files. So why not send encrypted pdfs instead?

To avoid the manual steps, I wrote a little script that just opens an
editor for writing the email. The text is saved to a file, encrypted to
pdf with password 'bar' and mailed to 'foo'. Obviously you have to
change the mail and password and should have a sufficiently secure way
of communicating the password.

It took me a while to figure out how to convert etch's unicode text to
pdf (a2ps and enscript don't work), so I hope this is useful for
someone. 'uniprint' is part of the 'yudit' package, the rest should be
obvious.

Johannes

- ------------------
#!/bin/bash
nano foo.txt
uniprint -out foo.ps -in foo.txt
ps2pdf foo.ps
pdftk foo.pdf output foo_sec.pdf user_pw bar allow AllFeatures
mutt -a foo_sec.pdf -s "from me" foo@mail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH4NdtC1NzPRl9qEURAqDlAJ0VdvBhmgwVXBi6zCM3WkE5A17AiQCeKAM+
vOD6ZHpLe0TZAKn44c6eMyw=
=GaPC
-----END PGP SIGNATURE-----


Reply to: