Trying to find a good javascript function for hmac-sha1

So, I searched the Internet for javascript source for the Hmac-sha1 algorithm. I saw Crypto, but I can not get it to work, mainly because it does not know what crypto means. (I copied the .js script functions to my script file)
http://code.google.com/p/crypto-js/
I have a base64 function already encoded. what i got from here:
http://nerds-central.blogspot.com/2007/01/fast-scalable-javascript-and-vbscript.html


btw this is for twitter application using the new OAuth system.

any help or links to where I can find anything on this would be helpful Let me know if I need you. thank!

+3
source share
1 answer

I have not tried, but "jssha" seems to have recently added HMAC support to its SHA-X library:

http://jssha.sourceforge.net/

+7
source

Source: https://habr.com/ru/post/1747436/


All Articles