Skip to content

Hashing data passed in URLs using token processors

FunnelFlux can process any token before it writes the value into a URL.

Add a processor after the token name. Type it in the URL. The V2 token picker does not list these processors, but typing them works. The processors are:

  • :md5
  • :bin2hex
  • :rot13
  • :base64

Use them when you need to hide a raw value from a network, offer, or other party that receives your URLs.

You pass publisher IDs to an affiliate network. You do not want the network to see the raw IDs, because that can show which publishers are working well for you. A hashed value still lets the advertiser talk about lead quality without revealing the original ID.

Start with this URL:

example.com/?a=1234&s1={funnel-id}&s2={trackingfield-pubid}

Hash the publisher ID by adding : and a processor:

example.com/?a=1234&s1={funnel-id}&s2={trackingfield-pubid:md5}

You can chain processors. They always run in this fixed order, whatever order you type them in: :md5, :bin2hex, :rot13, :base64. Each processor runs at most once. To run :md5 and then :bin2hex:

example.com/?a=1234&s1={funnel-id}&s2={trackingfield-pubid:md5:bin2hex}

Each processor behaves differently. Pick the one that matches the value and how reversible you need the result to be.

MD5 produces a 128-bit hash of the input. It is a hash, not encryption. There is no decode step, so the recipient cannot read the original value directly. Short or predictable values, such as numeric IDs, can still be guessed by hashing candidates and comparing.

You can produce the hash from the original value. Use MD5 when the recipient should not be able to recover the original value, and you accept that matching hashes back to the originals is manual work.

FunnelFlux does not store MD5 versions of your tracking data. The interface has no table that generates these hashes for you.

If you pass publisher IDs as MD5 hashes and a network asks you to pause some of them:

  1. Export your publisher ID list to Excel.
  2. Convert those IDs to MD5 hashes with a script or formula in Excel.
  3. Compare the columns to find the original publisher IDs.

You can generate reference hashes with an MD5 converter.

Example value: funnelflux

Example md5: a9e7bc2bad6dcb0101239a71fe4377d9

bin2hex is a PHP function that converts a string to hexadecimal. The result is reversible if you know bin2hex was applied. That makes it less private than MD5. Anyone who recognises the encoding can convert it back.

Example value: funnelflux

Example bin2hex: 66756e6e656c666c7578

ROT13 replaces each letter with the letter 13 places later. Numbers stay the same. It only changes values that contain letters.

Like bin2hex, ROT13 is reversible if you know it was applied.

You can generate ROT13 values with a ROT13 converter.

Example value: funnelflux

Example rot13: shaarysyhk

Example value: vibrant-shark-1923

Example rot13: ivoenag-funex-1923

:base64 runs PHP base64_encode on the value. The result is standard base64. It is reversible if you know base64 was applied. Anyone who recognises the encoding can convert it back.

Example value: funnelflux

Example base64: ZnVubmVsZmx1eA==