Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

RE: e-mail encryption

by Nitsuj (Hermit)
on Aug 03, 2000 at 21:34 UTC ( [id://26032]=note: print w/replies, xml ) Need Help??


in reply to email encryption

Sendmail doesn't encrypt email. Much as the name implies it sends mail... Encryption is entirely different in nature and in subject than sending e-mail is. To send an encrypted e-mail, there are 2 obvious steps.

1) Encrypt it.
2) Send it.


Ok, since your question is really more on the first, lets go ahead and answer it. There are many forms of encryption. There are many forms of encryption applicable to e-mail. There is one popular form of encryption that everyone has, that everyone recognizes, and that everyone uses. That is, everyone who encrypts their e-mail, and actually has a hand in deciding the technologies used and knows about them and such (IE, supposing AOL added "user friendly" encryption technology to their e-mail system, the users probably wouldn't consciously be doing much with it). That said. This form is PGP. There is also GPG, which is newer, and popular in the GPL community, but lets face it, not ALL of us here are part of that community. So, we'll focus on PGP. PGP is included with many linux distros, there is always a version that you can pipe through/insert something here/do whatever the heck you will with. There are hundreds of implementations, so you should be able to find one that runs on the platform you want, and that does what you want it to do.

The easiest way to do this in a perl script, (hence you posting this question to perlmonks), is with the crypt::PGP5 pm. USE this module, encrypt your e-mail with it, and then send as normal. This should be fairly self explainatory. PGP is public key encryption, so you will need to know the other party's public key before encrypting the mail, and you will need a private key to decode your mail. You might consider keeping a database of public keys on your computer, so that you can properly encrypt for all of your users.

HAVE FUN.

Just Another Perl Hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://26032]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2024-04-25 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found