Any examples or libraries to caculate HMAC-SHA1 in Erlang?
I tried Crypto Module, but apparently doesn’t match exactly. Any examples?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To expand on the previous answer, here is the hmac module in Python using the SHA-1 algorithm with the key ‘hello’ and the message ‘world’:
Here’s the equivalent in Erlang. I’d use a more efficient method to convert the binary MAC to a hex digest in typical code, but I used this one for brevity: