Files
davideisinger.com/content/journal/encrypt-and-dither-photos-in-hugo/index.md
David Eisinger 55c1010ce2 start dither post
2024-02-05 10:00:36 -05:00

1.8 KiB

title, date, draft, references
title date draft references
Encrypt and Dither Photos in Hugo 2024-02-05T09:47:45-05:00 false
title url date file
Elliot Jay Stocks | 2023 in review https://elliotjaystocks.com/blog/2023-in-review 2024-02-02T15:51:48Z elliotjaystocks-com-fcit8u.txt
title url date file
Encrypt and decrypt a file using SSH keys https://www.bjornjohansen.com/encrypt-file-using-ssh-key 2024-02-05T14:50:24Z www-bjornjohansen-com-hqud3x.txt
title url date file
Ditherpunk — The article I wish I had about monochrome image dithering — surma.dev https://surma.dev/things/ditherpunk/ 2024-02-05T14:50:25Z surma-dev-e4sfuv.txt
title url date file
About the Solar Powered Website | LOW←TECH MAGAZINE https://solar.lowtechmagazine.com/about/the-solar-website/ 2024-02-05T14:50:28Z solar-lowtechmagazine-com-vj7kk5.txt

A more ambitions version of me would take a crack at adding this functionality to Hugo and opening a PR.

openssl rand -hex -out secret.key 32

openssl \
  aes-256-cbc \
  -in secretfile.txt \
  -out secretfile.txt.enc \
  -pass file:secret.key \
  -iter 1000000

Dir.glob("content/**/*.{jpg,jpeg,png}").each do |path|
  `openssl aes-256-cbc -in #{path} -out #{path}.enc -pass file:secret.key -iter 1000000`
end

Deleting images out of Git history

Dir.glob("content/**/*.{jpg,jpeg,png}") do |path|
  `git filter-repo --invert-paths --force --path #{path}`
end

I'm 41 years old, and this stuff still gives me a buzz like it did when I was 14.