Email Protector

The JS script: emailProtector.js

This file stores the script that does all the decryption work when a user clicks one of your protected email links. This file must be located in the same directory as your html document(s) with the links you wish to protect.

Next, you need to follow the below steps to encrypt your email address links. At the end, you will be provided with some text and protected links that you should copy and paste into your html document. If you ever want to add or change your protected email links, you can simply come back to this page and use the form below to generate more protected links.

Make a key:

First you need to select 2 prime numbers that will make up the encryption/decryption key. They must be different numbers, and their product, N, must be greater than 255.

P: The first prime number used to make the key.
Q: The second prime number used to make the key.

Enter your Email Address(es):

If you want to protect more than one address, just put each one on a separate line.

Subject Line (optional)

If you do type something there, please only use letters, numbers, and spaces in the subject line. Single quotes are ok too, but not double quotes. And question marks are sure to mess things up.

Encrypt It

The Technical Stuff:

Public
Private
N: P:
E: Q:
C: D:

In case you wanted to know, N is equal to P*Q. N, the public key, only has 2 possible factors other than itself and 1, so finding out P and Q from N can take a long time, depending on how large N is. P and Q are private keys, which are needed to break the encryption. E is an exponent used in creating the encrypted string C, and in creating the decryption key, D.

Test Decryption:

Just to make sure everything worked out all right. If not try changing the prime numbers.

Encrypted:
Decrypted:

Generate the HTML:

Click this last button to get the HTML code and instructions.


Remember to have emailProtector.js saved in the same directory as your html document!

Enjoy

Now your email address should be safe from SpamBots (computer programs that crawl the net looking for email addresses). Most SpamBots look for the give-away 'mailto:blah@blah.com' link, and more complicated ones look for '@' symbols. With this script in your page, there's not a single 'mailto' or '@'. In addition, your email address is only decrypted during a user-generated mouse-click event. As far as the bots are concerned, it's just a bunch of meaningless numbers. This should help keep your email address off of future bulk email lists.