Clarinet Internet Solutions
  • Home
  • VPS and Dedicated Servers
  • Consulting
    • System Administration | Linux and FreeBSD
    • Website Optimization
    • Digital Marketing Strategy
    • Request Site SEO Report
  • Blog
  • Support
    • Configuration Guides
    • Webmail
  • Contact Us

Encrypted HTML Generator

July 15, 2011 4780 views

This page generates a Vigenere cipher of a key and plaintext. When used with the decode function this can be used to obfuscate the text of an HTML page.

A typical application would be to generate an mailto link on a web page. As spammers often scrape web pages to find e-mail addresses, encrypting the e-mail address raises the bar, requiring the spammers to execute the page’s Javascript to find the e-mail address.

To use the generator enter your key and plain text into the fields below and press the encode button. Copy the code generated into your web page. Ensure that the decode function is contained within the head section of the page.

Key
Plain Text
<script type=text/javascript >
function decode(k,s)
{
	var o = "";
	for (var i = 0; i < s.length ; i++)
	{
	       var c = s.charCodeAt(i);
	       c = c - k.charCodeAt(i % k.length);
	       o = o + String.fromCharCode(c);
	}
	document.write(o);
}
</script>

Recent Posts

  • Digital Marketing Strategy
  • Set up Gmail as Email Client
  • Outlook 2016 with IMAP and authenticated SMTP over SSL
  • Getting started with WordPress for SMEs
  • Vista email problems with timeouts
  • Set up e-mail with Microsoft Outlook Express Using Pop3
  • Thunderbird with POP3, SSL and Authenticated SMTP
  • Android email with POP3, SSL and authenticated SMTP
  • Set up Apple Mail with IMAP, SSL and authenticated SMTP
  • Set up iPhone with POP3 and Authenticated SMTP over SSL
© 2017 Copyright Clarinet Internet Solutions. All Rights reserved.
Close Window

Loading, Please Wait!

This may take a second or two. Loading, Please Wait!