\n\n\n";
a += commentStart + "This script block stores your encrypted email address(es) in" + commentEnd;
a += commentStart + "the addresses array. If you ever want to add new addresses to" + commentEnd;
a += commentStart + "a page, you can return to http://www.jracademy.com/~jtucek/email/" + commentEnd;
a += commentStart + "and generate more, and then add this block to your existing page." + commentEnd;
a += "\n\n\n\n";
a += commentStart + "Here are some examples of how to display protected email address " + commentEnd;
a += commentStart + "links. If you entered more than one address, take note that each " + commentEnd;
a += commentStart + "one is referenced by a different number, ranging from zero on up. " + commentEnd;
a += commentStart + "Otherwise, you leave the number zero in the function call, and it " + commentEnd;
a += commentStart + "will give you the first email address you entered. " + commentEnd + "\n";
a += commentStart + "A clickable link that displays your email address in text " + commentEnd;
a += "
\n\n";
a += commentStart + "A clickable link without your email address in the text. " + commentEnd;
a += commentStart + "This is slightly more secure than the previous two, since " + commentEnd;
a += commentStart + "the user has to click the link before your email address " + commentEnd;
a += commentStart + "is ever decrypted. " + commentEnd;
a += "e-mail me
\n\n";
a += commentStart + "Just write your email address into text, no link. " + commentEnd;
a += "My email address is .
\n\n";
a += "
Examples if you entered more than one email address into the list:
\n";
a += "(If not, these links will say 'Error, not a valid index', and you should
";
a += "just cut them out / ignore them)
\n";
a += commentStart + "If your list contained more than one email address, you can " + commentEnd;
a += commentStart + "can get their addresses by changing the number in the two function " + commentEnd;
a += commentStart + "calls (the number between the parenthesis). The list starts at " + commentEnd;
a += commentStart + "zero, so the nth person in the list will be number n - 1. " + commentEnd;
a += commentStart + "(e.g. the fifth person's address will be number 4) " + commentEnd;
a += "Email the second person in the list: ";
a += "
\n\n";
a += "Email the third person in the list: ";
a += "
\n\n";
return a;
}
// Stop hiding script -->
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.
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.