:wave: As a learning exercise, I implemented SHA-256 and HMAC.
Awesome, I'll need HMAC in a project I'd like to build. Thank you for building and sharing! :)
Note: we recently touched on whether cryptography is reasonable to implement in roc. The point is that it can be easily vulnerable to timing attacks. I think the recommended flow for real applications would be passing cryptography from the platform. But it depends on the use case ofc
I don't think that's a worry for SHA, but yeah it's probably a risk for anything involving a secret.
Last updated: Jul 06 2025 at 12:14 UTC