Show HN: Minimal NIST/OWASP-compliant auth implementation for Cloudflare Workers
11 by vhsdev | 4 comments on Hacker News.
This is an educational reference implementation showing how to build reasonably secure, standards-compliant authentication from first principles on Cloudflare Workers. Stack: Hono, Turso (libSQL), PBKDF2-SHA384 + normalization + common-password checks, JWT access + refresh tokens with revocation support, HTTP-only SameSite cookies, device tracking. It's deliberately minimal — no OAuth, no passkeys, no magic links, no rate limiting — because the goal is clarity and auditability. I wrote it mainly to deeply understand edge-runtime auth constraints and to have a clean Apache-2.0 example that follows NIST SP 800-63B / SP 800-132 and OWASP guidance. For production I'd almost always reach for Better Auth instead ( https://ift.tt/DoKkNQp ) — this repo is not trying to compete with it. Live demo: https://private-landing.vhsdev.workers.dev/ Repo: https://ift.tt/filwPa9 Happy to answer questions about the crypto choices, the refresh token revocation pattern, Turso schema, constant-time comparison, unicode pitfalls, etc.
Special News
Monday, 9 February 2026
New top story on Hacker News: Show HN: Algorithmically Finding the Longest Line of Sight on Earth
Show HN: Algorithmically Finding the Longest Line of Sight on Earth
16 by tombh | 5 comments on Hacker News.
We're Tom and Ryan and we teamed up to build an algorithm with Rust and SIMD to exhaustively search for the longest line of sight on the planet. We can confirm that a previously speculated view between Pik Dankova in Kyrgyzstan and the Hindu Kush in China is indeed the longest, at 530km. We go into all the details at https://alltheviews.world And there's an interactive map with over 1 billion longest lines, covering the whole world at https://map.alltheviews.world Just click on any point and it'll load its longest line of sight. Some of you may remember Tom's post[1] from a few months ago about how to efficiently pack visibility tiles for computing the entire planet. Well now it's done. The compute run itself took 100s of AMD Turin cores, 100s of GBs of RAM, a few TBs of disk and 2 days of constant runtime on multiple machines. If you are interested in the technical details, Ryan and I have written extensively about the algorithm and pipeline that got us here: * Tom's blog post: https://ift.tt/Rfxgu0l * Ryan's technical breakdown: https://ift.tt/KVE5LPR This was a labor of love and we hope it inspires you both technically and naturally, to get you out seeing some of these vast views for yourselves! 1. https://ift.tt/anFKmEb
16 by tombh | 5 comments on Hacker News.
We're Tom and Ryan and we teamed up to build an algorithm with Rust and SIMD to exhaustively search for the longest line of sight on the planet. We can confirm that a previously speculated view between Pik Dankova in Kyrgyzstan and the Hindu Kush in China is indeed the longest, at 530km. We go into all the details at https://alltheviews.world And there's an interactive map with over 1 billion longest lines, covering the whole world at https://map.alltheviews.world Just click on any point and it'll load its longest line of sight. Some of you may remember Tom's post[1] from a few months ago about how to efficiently pack visibility tiles for computing the entire planet. Well now it's done. The compute run itself took 100s of AMD Turin cores, 100s of GBs of RAM, a few TBs of disk and 2 days of constant runtime on multiple machines. If you are interested in the technical details, Ryan and I have written extensively about the algorithm and pipeline that got us here: * Tom's blog post: https://ift.tt/Rfxgu0l * Ryan's technical breakdown: https://ift.tt/KVE5LPR This was a labor of love and we hope it inspires you both technically and naturally, to get you out seeing some of these vast views for yourselves! 1. https://ift.tt/anFKmEb
Sunday, 8 February 2026
Saturday, 7 February 2026
New top story on Hacker News: UK infants ill after drinking contaminated baby formula of Nestle and Danone
UK infants ill after drinking contaminated baby formula of Nestle and Danone
18 by __natty__ | 0 comments on Hacker News.
18 by __natty__ | 0 comments on Hacker News.
Friday, 6 February 2026
New top story on Hacker News: A new bill in New York would require disclaimers on AI-generated news content
A new bill in New York would require disclaimers on AI-generated news content
76 by giuliomagnifico | 32 comments on Hacker News.
76 by giuliomagnifico | 32 comments on Hacker News.
Subscribe to:
Comments (Atom)