Projects STRLCPY link-lock Commits 137b9f63
🤬
  • ■ ■ ■ ■ ■
    README.md
    skipped 2 lines
    3 3  [Password-protect URLs using AES in the
    4 4  browser.](https://jstrieb.github.io/link-lock)
    5 5   
     6 +Link Lock now supports secure, hidden bookmarks via bookmark knocking! Read
     7 +more [here](https://jstrieb.github.io/projects/hidden-bookmarks).
     8 + 
    6 9   
    7 10   
    8 11  ## About
    skipped 82 lines
    91 94  ## Usage
    92 95   
    93 96  - Create a locked link here: [https://jstrieb.github.io/link-lock](https://jstrieb.github.io/link-lock).
     97 +- Once you have a locked link, create a hidden bookmark here:
     98 + <https://jstrieb.github.io/link-lock/hidden>.
    94 99  - Use the advanced options when creating a link to make the encryption more
    95 100   secure (at the cost of a longer link).
    96 101   - By default, the initialization vector is randomized for security, but
    skipped 87 lines
  • ■ ■ ■ ■ ■ ■
    hidden/hidden.js
    skipped 58 lines
    59 59   try {
    60 60   let _ = JSON.parse(b64.decode(hash));
    61 61   } catch {
     62 + error("The hidden URL appears corrupted. It must be a password-protected Link Lock URL. <a href=\"https://jstrieb.github.io/link-lock\">Click here to add a password.</a>");
     63 + return;
     64 + 
     65 + // Uncomment this to allow hiding arbitrary pages. Not secure though, so I
     66 + // disabled it.
     67 + /*
    62 68   let hashData = {
    63 69   unencrypted: true,
    64 70   url: hiddenUrl.toString(),
    skipped 1 lines
    66 72   
    67 73   hiddenUrl.hash = b64.encode(JSON.stringify(hashData));
    68 74   document.querySelector("#encrypted-url").value = hiddenUrl.toString();
     75 + */
    69 76   }
    70 77   
    71 78   let output = document.querySelector("#output");
    skipped 78 lines
  • ■ ■ ■ ■ ■ ■
    hidden/index.html
    skipped 52 lines
    53 53   <p>Here is how to create hidden bookmarks:</p>
    54 54   <ol>
    55 55   <li>
     56 + <a href="https://jstrieb.github.io/link-lock">Add a password to the hidden link</a> if you have not done so already.
     57 + </li>
     58 + <li>
    56 59   Drag the "decrypt" bookmark below to your bookmarks bar.
    57 60   
    58 61   <ul><li style="margin-bottom: 0.5em;">Clicking the decrypt bookmark goes to <code>gmail.com</code> unless the current page is a disguised link. Use the "advanced" options to have it go somewhere else instead.</li></ul>
    skipped 180 lines
Please wait...
Page is in error, reload to recover