CryptX source code

By Ralf Weber, on WordPress.org since 2007. 10,000+ active installs.

Browse code Download zip

No more SPAM by spiders scanning your site for email addresses. With CryptX you can hide all your email addresses, with and without a mailto-link, by converting them using javascript or UNICODE. Below is its source code for every one of its 93 releases, what changed in the latest one, and how often it ships.

What changed in 4.2.2

Released Nov 26, 2026, 2 months after 4.2.1
  • Fixed email addresses with letters outside ASCII, such as josé@café.fr or müller@exämple.de, were not recognised and stayed readable in the page in every mode. They are now found, linked and protected like any other address. Text in quotation marks or brackets next to an address is not taken for part of it
  • Fixed a mailto link to such an address was changed on the way: “jürgen@bücher.de” became “[email protected]” inside the encrypted link, so the link opened a message to an address that does not exist. The address now arrives as written
  • Fixed with the compatible (legacy) encryption, links to addresses with letters outside ASCII decoded to the wrong characters. They are now encoded per character, as the script that decodes them reads them. Characters the legacy method cannot carry, such as Chinese or Japanese ones, are encrypted the secure way instead
  • Fixed the obfuscated link text and picture titles garbled letters outside ASCII
  • Fixed a deprecation notice under PHP 8.5 in the encryption code: a function that expects a single byte was handed more than one. The encrypted output is unchanged
  • Fixed a deprecation notice under PHP 8.6 caused by the name of a private constant in the REST class. Routes and permissions are unchanged

8 files changed since 4.2.1: 8 modified, 0 added, 0 removed.

Compare 4.2.1 with 4.2.2

Release history

93 releases since October 2007
  1. 4.2.2 Nov 26, 2026 Fixed email addresses with letters outside ASCII, such as josé@café.fr or müller@exämple.de, were not recognised and stayed readable in the page in every mode. They are now found, linked and protected like any other address. Text in quotation marks or brackets next to an address is not taken for part of it
  2. 4.2.1 Sep 11, 2026 Fixed with the JavaScript variant switched on, the script is now delivered on every page, not only on pages that themselves carry a protected address. Themes that exchange page content in the browser without rebuilding the document — swup.js and other client-side routers work that way — brought protected links onto the screen for which no click handler had ever been loaded. Those links did nothing at all until the visitor reloaded the page in full. It has been that way since 4.0.12, when delivery was made conditional on the page at hand
  3. 4.2.0 Aug 20, 2026 New on a multisite network, the network administrator can set the defaults a newly created site starts with, under Network Admin / Settings / CryptX. Sites that already exist are never changed — every site keeps its own settings, as it has since 4.1.1. Two settings are deliberately not shareable: excluded post IDs and the uploaded image refer to things that exist on one site only, and copying the first of them is exactly what left addresses unprotected before 4.1.1
  4. 4.1.1 Aug 15, 2026 Fixed a mailto link carrying a subject lost it, and the address inside the encrypted link was corrupted — “[email protected]?subject=Hello” became “[email protected]” and the link went nowhere. Subject, body, cc and bcc now travel inside the encrypted link (thx to pbmedia)
  5. 4.1.0 Aug 14, 2026 New the settings screen has been rebuilt from scratch: mobile first, with every option explained where you set it
Full CryptX changelog with diffs

Source of 4.2.2

49 files
Browse all CryptX 4.2.2 files Browse trunk