frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Rkik-Nts: The First NTS Client Library for Rust

https://github.com/aguacero7/rkik-nts
1•aguacero7•1h ago

Comments

aguacero7•1h ago
After developing rkik, I realized there wasn't a standalone NTS library available, only full implementations embedded in larger projects.

I needed a simple, reusable library for secure time synchronization, so I started exploring options. I tested several approaches, trying to extract NTS functionality from various implementations, but ran into issues with each one. Some were too tightly coupled to their parent projects, others had incomplete APIs, and many weren't designed to be used as libraries at all. After considerable trial and error, I finally found ntpd-rs from the Pendulum Project, which had solid, well-structured code that could be adapted into a standalone library.

What is NTS? Network Time Security (NTS) is a security extension for NTP (Network Time Protocol) defined in RFC 8915. While NTP has been the backbone of internet time synchronization for decades, it was designed in an era before widespread security threats.

NTS adds three critical security features: - Authentication: Cryptographic verification that time data comes from the expected server - Encryption: Protection of time synchronization traffic from eavesdropping - Replay attack resistance: Each query uses unique authentication cookies

The protocol works in two phases: an initial TLS-based key exchange (NTS-KE), followed by authenticated UDP-based NTP queries using the negotiated keys and cookies. Why rkik-nts? rkik-nts provides a simple, ergonomic API for Rust applications that need secure time synchronization without implementing the full NTS protocol themselves.

Looking for Feedback and Contributors This is a new library and I will be actively maintaining it. I'd love to hear: - Use cases you have for NTS in your projects - API improvements or missing features - Bug reports and performance feedback - Contributions welcome—whether it's code, documentation, or examples

If you're working on time-sensitive applications, embedded systems, or anything requiring secure time synchronization, give it a try and let me know how it works for you. Acknowledgments Huge thanks to the Pendulum Project and Tweede golf for ntpd-rs, which made this library possible. Their memory-safe NTP implementation provided the solid foundation I needed. The library is available on crates.io as rkik-nts and on GitHub at https://github.com/aguacero7/rkik-nts

Full Stack Dev

https://www.digital-spaces.co.za/
1•DSA_WEB•35s ago•1 comments

Rise of the 'porno-trolls':how one porn platform made millions suing its viewers

https://www.theguardian.com/society/ng-interactive/2025/nov/04/strike-3-porn-copyright-lawsuits
1•failingforward•2m ago•0 comments

Show HN: Why We're Building Creativity and Game Dev Clubs for Kids

https://breaka.club/blog/why-were-building-clubs-for-kids
1•Benjamin_Dobell•2m ago•0 comments

Sudan: The UAE's shady role and Western nations' 'culpable indifference'

https://www.lemonde.fr/en/le-monde-africa/article/2025/11/03/the-uae-s-shady-role-in-sudan-and-we...
1•moosedman•2m ago•1 comments

Projet

1•ithec•3m ago•0 comments

Teaching robots to map large environments

https://news.mit.edu/2025/teaching-robots-to-map-large-environments-1105
1•fleahunter•3m ago•0 comments

RSF digging mass graves in Sudan's el-Fasher to 'clean up massacre'

https://www.aljazeera.com/news/2025/11/4/rsf-digging-mass-graves-in-sudans-el-fasher-to-clean-up-...
1•moosedman•3m ago•0 comments

Making high quality apps for less than 1% of people

1•muhammadkone•3m ago•0 comments

Coercin, Monopsony in American Manufacturing: Evidence from Alabama Prison Labor

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5698743
1•bediger4000•6m ago•1 comments

The Ghost in the Machine Is Finally Allowed to See: A Beginner's Guide to MCP

https://danielkliewer.com/blog/2025-11-05-the-ghost-in-the-machine-is-finally-allowed-to-see-a-be...
1•KonradFreeman•6m ago•0 comments

AI Won't Generate a Good Product Idea

https://pawelbrodzinski.substack.com/p/ai-wont-generate-a-good-product-idea
1•flail•6m ago•0 comments

Ethics by Spinoza

https://www.gutenberg.org/files/3800/3800-h/3800-h.htm
1•lbxa•7m ago•0 comments

Preservation Maryland: How to Map a Cemetery [video]

https://www.youtube.com/watch?v=Iawp-UteCfc
1•toomuchtodo•8m ago•1 comments

FBI Warns of Criminals Posing as ICE, Urges Agents to ID Themselves

https://www.wired.com/story/fbi-warns-of-criminals-posing-as-ice-urges-agents-to-id-themselves/
4•petethomas•8m ago•0 comments

The Death of the Demo

https://lielvilla.com/blog/death-of-demo/
1•lielvilla•9m ago•0 comments

Echo chamber and trench warfare dynamics in online debates (2017)

https://pmc.ncbi.nlm.nih.gov/articles/PMC5482382/
1•tobyjsullivan•9m ago•0 comments

This Month in Redox – October 2025

https://www.redox-os.org/news/this-month-251031/
1•birdculture•9m ago•0 comments

Internet Search Tips (2023)

https://gwern.net/search
1•bookofjoe•10m ago•0 comments

The Disturbing Truth About How Airplanes Are Maintained Today

https://www.vanityfair.com/news/2015/11/airplane-maintenance-disturbing-truth
2•voxadam•11m ago•0 comments

Django ninja aio CRUD REST framework

https://github.com/caspel26/django-ninja-aio-crud
1•caspel26•11m ago•0 comments

Show HN: Wemob – Turn any website into a mobile app instantly with AI

https://wemob.io
1•knid•12m ago•0 comments

The Evolution of Bacteria

https://worksinprogress.co/issue/the-evolution-of-bacteria/
2•bensouthwood•13m ago•0 comments

Show HN: Send voice recordings in emails from Gmail and Outlook – Discount Code

https://chorde.net/
1•chas9000c•15m ago•0 comments

PgEdge and CloudNativePG Partnership: Simplifying Distributed Postgres on K8s

https://www.pgedge.com/blog/pgedge-cloudnativepg-simplifying-distributed-postgres-on-kubernetes
1•pgedge_postgres•16m ago•0 comments

PolyForm Noncommercial 2.0.0-Pre.1

https://writing.kemitchell.com/2025/11/04/PolyForm-Noncommercial-2.0.0-pre.1
1•feross•20m ago•0 comments

AI Energy Score

https://huggingface.github.io/AIEnergyScore/
2•doener•22m ago•0 comments

Exploring the Browser Rendering Process

https://abhisaha.com/blog/exploring-browser-rendering-process/
1•ravenical•22m ago•0 comments

Show HN: JermCAD – A YAML-powered, vibe-coded, browser-based CAD software

https://github.com/jeremyaboyd/jerm-cad
1•jermaustin1•23m ago•0 comments

Findings from DX's 2025 AI won't save you from your engineering culture

https://blog.robbowley.net/2025/11/05/findings-from-dxs-2025-report-ai-wont-save-you-from-your-en...
1•speckx•24m ago•0 comments

Show HN: I was in a boring meeting so I made an encyclopedia

https://encyclopedai.stavros.io
1•stavros•25m ago•0 comments