jabberwock / ciphermail

CipherMail provides a safe alternative to the mail_to helper by hiding mailto links from e-mail harvesting bots. The generated output is completely obfuscated by a 1024 bit random key. They keyword is stored on the server, so it is never revealed to the client. Processing is performed on the server-side via an AJAX request and the decrypted redirect is returned to the client, opening a mail composer window… just like normal mailto link.

This URL has Read+Write access

ciphermail / README
100644 24 lines (15 sloc) 0.923 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CipherMail
==========
 
CipherMail provides a safe alternative to the mail_to helper by hiding mailto links from e-mail harvesting bots.
The generated output is completely obfuscated by a 1024 bit random key. They keyword is stored on the server, so
it is never revealed to the client. Processing is performed on the server-side via an AJAX request and the
decrypted redirect is returned to the client, opening a mail composer window... just like normal mailto link.
 
Example
=======
 
  <%= ciphermail_to "John Smith", "someone@somedomain.com" %>
 
 
Note: A new key is generated every time you restart your web-server.
      If you'd like to manually generate a new key, simply run:
      ruby ./script/runner "CipherMailSetup.genkey"
 
That's it! Have fun, and feel free to send me questions or comments.
 
Copyright (c) 2007-2009 Michael Behan aka "JabberWock" (djether /AT gmail /DOT com)
Released under the BSD license