Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hash_hmac in erlang

Tags:

erlang

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

like image 784
Abhimanyu Avatar asked Feb 27 '26 20:02

Abhimanyu


2 Answers

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

like image 53
Matthew Flaschen Avatar answered Mar 02 '26 07:03

Matthew Flaschen


I just googled this

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

like image 23
Sam Saffron Avatar answered Mar 02 '26 09:03

Sam Saffron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!