tags:

views:

108

answers:

2

hi, i wanna know, is their any way to achieve hash_hmac("sha256", $token, $signkey, true) (php) in erlang?

thanx in advance

+1  A: 

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

Matthew Flaschen
Does not seem to support sha256, just SHA-1 (160 digest bits)
laalto
+1  A: 

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