I want to know, is there any way to achieve hash_hmac("sha256", $token, $signkey, true)
(php) in erlang?
Asked
Active
Viewed 430 times
3 Answers
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

Matthew Flaschen
- 278,309
- 50
- 514
- 539
-
Does not seem to support sha256, just SHA-1 (160 digest bits) – laalto Jun 08 '09 at 06:34
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