3

I want to know, is there any way to achieve hash_hmac("sha256", $token, $signkey, true) (php) in erlang?

rmtheis
  • 5,992
  • 12
  • 61
  • 78
Abhimanyu
  • 369
  • 1
  • 4
  • 8

3 Answers3

1

The erlsha2 library supports sha256 and hmac, as explained in the answer to this question.

Community
  • 1
  • 1
Steve Vinoski
  • 19,847
  • 3
  • 31
  • 46
1

Look at http://erlang.org/doc/apps/crypto/index.html

Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539
1

I just googled this

Looks like Sha256 is missing from erlang base libraries, but the author on the blog hand coded an implementation.

Sam Saffron
  • 128,308
  • 78
  • 326
  • 506