Skip to main content

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

Release files for bud.nospam 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bud.nospam 1.0.1
File Size Uploaded
bud.nospam-1.0.1.tar.gz 3.3 kB Details

Release files / bud.nospam-1.0.1.tar.gz

Download URL bud.nospam-1.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b2da38f3d17a049faf3f79419fadb8de9d4a9528fb2faa94347e12258de8f81a
BLAKE2b-256 checksum
How to use checksums
9189b95112ad454013f3830993ab6e7aa9062b1cbed24c2a8f775df0dfb10a8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page