PHP Classes

Mailto: Obfuscate e-mail links using ROT13

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-01-27 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 331 All time: 6,611 This week: 1,029Up
Version License PHP version Categories  
mailto 0.0.2GNU Lesser Genera...4.2.0HTML, Email
Description Author  

This class can be used to obfuscate e-mail links using the ROT13 algorithm.

It takes an e-mail address and an anchor text and generates HTML tags for obfuscated e-mail links using ROT13 or an 8 bit, random key, ASCII Caesar Cipher.

The generated HTML has Javascript code that decodes encoded e-mail link tags.

Picture of Debugged Interactive Designs
Name: Debugged Interactive ... <contact>
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 1222163 in United States United States
Week rank: 1574 Down164 in United States United States Down


    Mailto: A PHP class for obfuscating e-mail addresses from spam harvesters

VERSION: 0.0.2


    Debugged Interactive Designs <>


    The latest version can always be
    found at


    Online documentation of the class, methods, and variables can
    be found at


    PHP 4.2.0


    include 'Mailto.php';
	$mailto = new Mailto();
	//$mailto = new Mailto('cc8b');
	$encrypted_link = $mailto->createLink('','Debugged Interactive Designs');


    What is Mailto?

    Mailto is a class written by Debugged Interactive Designs in PHP4 to obfuscate e-mail
    addresses from spam harvesters. The class lets you easily encode an entire anchor tag using 
    ROT13 Encryption or an 8 bit random key ASCII Caesar Cipher.  At run-time, javascript is used to decode 
    the encryption.  If javascript is disabled, then the e-mail address is safely shown by 
    reversing the e-mail address using PHP and re-reversing (versing?) it at run-time using CSS.

    Copyright (c) 2008 Debugged Interactive Designs. All rights reserved.
    This software is released under the GNU Lesser General Public License.
  Files folder image Files  
File Role Description
Accessible without login Plain text file Mailto.php Class The class source
Plain text file test.php Example Drop this test script in the same directory as the class source
Plain text file cc8b.js Class javascript file to decrypt cc8b
Plain text file rot13.js Data Code used to decode ROT13 encoded text at run-time
Plain text file README.txt Doc. Read this before you do anything else
Plain text file LICENSE.txt Lic. GNU Lesse General Public License

 Version Control Unique User Downloads Download Rankings  
 0%Total:331All time:6,611
 This week:0This week:1,029Up