Hacker GitHub

← All repos

higgins/privatize

View on GitHub ↗ ★ 21 JavaScript

Partially encrypt/decrypt a file based on the presence of a heredoc

8 mentions on Hacker News by 3 people: 1 story, 7 comments · first 2022-03-16 · latest 2023-04-28

Mentions per year 8 mentions · busiest year 2022 (7)
20082026
  1. …and keep some notes private. The tool is still a WIP as it isn't portable between machines -- https://github.com/higgins/privatize more on it here: https://encapsulate.me/writing/Privatize.html
  2. …in git. All of it public although some information is encrypted with my privatization tool ( https://github.com/higgins/privatize ). The log itself is a simple org file but I parse and render it in html here so that I can share important…
    comment by higgins · 2022-07-19 · in Tell HN: My new free note taking tool
  3. …call out. thanks! currently i only have one warning in place if I forget to close there heredoc: https://github.com/higgins/privatize/blob/main/index.js#L168 but could add some more error checking. added to TODOs:…
  4. hey, thanks! added to my TODOs: https://github.com/higgins/privatize/commit/53f62483f943112e...
  5. …content to be encrypted. The 16B that are stored with the key is used to initialize the sha1 hmac: https://github.com/higgins/privatize/blob/0.1.1/index.js#L20...
  6. …live with the ciphertext. (I only glanced at the code for a few minutes, so I could be wrong: https://github.com/higgins/privatize/blob/0.1.1/index.js#L73 )
  7. Yikes, do all filters do that? https://github.com/higgins/privatize/blob/0.1.1/index.js#L98 Also, it's 2022 and I still have to remind people not to commit binary assets into git repos, as the repo will grow without bound:…