January 3rd, 2009 | Published in code, erlang | 5 Comments | Bookmark on Pinboard.in

Yesterday I posted a SHA-256 Erlang module, but I figured since other SHA algorithms are similar, I might as well finish the job. I grabbed the Secure Hash Standard and went to work.

The resulting new module is named sha2 and it implements SHA-224, SHA-256, SHA-384, and SHA-512.

Code

Light documentation

Tests are included in the module but you get the test vectors here

It’s open source, BSD license

I hope you find it useful.