Hacker News new | ask | show | jobs
by deltaknight 476 days ago
It’s definitely a fairly trivial implementation, here’s one of a few dozen lines of (not very clean) Swift: https://github.com/JustAman62/ovault/blob/7ee38b7e5c2666cd34...

The simplicity of the implementation makes a test suite even more valuable, as it’s really quite hard to figure out if your implementation is correct.

1 comments

As part of writing the test suite, I also wrote an implementation in JavaScript. It uses the Web Crypto API rather than external libraries.

https://shkspr.mobi/blog/2025/03/using-the-web-crypto-api-to...