Purple Strike

Lorem Ipsum

What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

testing

Why do we use it?

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

1. fromBase36(str)

Converts a base36-encoded string (digits and lowercase letters) into a decimal number.

Used to decode obfuscated 2-character chunks back into numeric values.

2. decryptUrl(encodedStr, key)

Takes the base36 string and a numeric key, splits it into reversed 2-char chunks.

Applies a reverse formula using the key to derive each character’s original ASCII code, reconstructing the original URL.

3. handleUrlHash()

Extracts the string after # in the URL and passes it to decryptUrl() using the hardcoded key 8742.

If successfully decoded, it logs and redirects the browser to the reconstructed (original) URL.

4. window.onload = function()

Executes handleUrlHash() automatically when the page loads. Also listens for hashchange events to dynamically decode and redirect if the URL hash changes

  • fromBase36(str)
  • Converts a base36-encoded string (digits and lowercase letters) into a decimal number.
  • Used to decode obfuscated 2-character chunks back into numeric values.
  • decryptUrl(encodedStr, key)
  • Takes the base36 string and a numeric key, splits it into reversed 2-char chunks.
  • Applies a reverse formula using the key to derive each character’s original ASCII code, reconstructing the original URL.
  • handleUrlHash()
  • Extracts the string after # in the URL and passes it to decryptUrl() using the hardcoded key 8742.
  • If successfully decoded, it logs and redirects the browser to the reconstructed (original) URL.
  • window.onload = function()
  • Executes handleUrlHash() automatically when the page loads.
  • Also listens for hashchange events to dynamically decode and redirect if the URL hash changes.
Scroll to Top