经典中的 HMAC SHA1 ASP

HMAC SHA1 in Classic ASP

我的任务是将 Classic ASP 网站与 SageOne API 集成。作为他们身份验证的一部分,您需要提供 HMAC-SHA1 签名。我在这里找到了如何使用 SHA256 执行此操作:hash_hmac in using pure classic ASP, which worked in that it produced the hash, but was not valid for the API. I've found similar code for SHA1 here: https://precompiled.wordpress.com/2007/11/26/hmac-sha1-encryptie-onder-classic-asp/ 但不幸的是,所需 wsc 文件的 link 不再有效。我一直没能在别处找到它。有没有人在其他地方遇到过这个文件?或者有人能指出我的替代方法吗?

您的 sha1.wsc 可以在 https://github.com/chakphanu/labs/blob/master/classic-asp-s3/sha1.wsc

找到

我不会在此处包含它,因为我不想检查许可要求。