function main() {
  if (window.location.hash) {
    document.querySelector("#encrypted-url").value =
      `https://jstrieb.github.io/link-lock/${window.location.hash}`;

    window.location.hash = "";
  }
}
If the page has a hash, autofill it.

Run on page load.