Skip to main content

ROT 13 encrypt text to prevent spam

Project description

Overview

This package provides a function for ROT 13 encoding text to make it email address displayed on the web harder to automatically harvest by spammers.

Usage

This package provides three simple functions:

bud.nospam.rot_13_encrypt('some text')
bud.nospam.js_obfuscated_text('someemail@example.com')
bud.nospam.js_obfuscated_mailto('someemail@example.com','Some Name')

Typically you will pass a string to the js_obfuscated_text() function, and insert the output into a web page. This function will ROT 13 encrypt the text, and embedd it with the necessary Javascript to decrypt the text.

The js_obfuscated_mailto() is a convenience method for wrapping the text in an anchor tag with a mailto: attribute.

Credit

This package was inspired by the TextMate ROT13 function, see the original TextMate blog post for further discussion.

Code

The latest version is available in a Mercurial repository. Clone a copy with:

hg clone http://tripbagger.com/hg.repo/bud.nospam/

Changelog

1.0.1 02-24-2009

  • Fix initial release, was missing HISTORY.txt.

1.0 - 02-24-2009

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bud.nospam-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file bud.nospam-1.0.1.tar.gz.

File metadata

  • Download URL: bud.nospam-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bud.nospam-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b2da38f3d17a049faf3f79419fadb8de9d4a9528fb2faa94347e12258de8f81a
MD5 25a05c9110d1f42e661589428c26c060
BLAKE2b-256 9189b95112ad454013f3830993ab6e7aa9062b1cbed24c2a8f775df0dfb10a8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page