Stream: show and tell

Topic: Implementation of SHA-256 and HMAC


view this post on Zulip Lachlan O'Dea (May 20 2024 at 09:50):

:wave: As a learning exercise, I implemented SHA-256 and HMAC.

view this post on Zulip Niclas Ahden (May 20 2024 at 09:59):

Awesome, I'll need HMAC in a project I'd like to build. Thank you for building and sharing! :)

view this post on Zulip Kiryl Dziamura (May 20 2024 at 10:22):

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

view this post on Zulip Lachlan O'Dea (May 20 2024 at 10:31):

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