Base64 HMAC SHA1 String in VBA

前端 未结 2 1303
眼角桃花
眼角桃花 2020-12-10 19:28

I\'m trying to convert an ASP/VBScript OAuth library to VBA. One of the challenges is this line of code:

Get_Signature = b64_hmac_sha1(strSecret, strBaseSign         


        
2条回答
  •  情书的邮戳
    2020-12-10 20:28

    You have written:

    It appears to me that calling a JavaScript function from VBA is fairly impractical.

    That is a misjudgment.

    Javascript can be easily packaged as a Windows Script Component (WSC) and then invokved via COM, from VBA, Perl, VB6, or what-have-you.

    Here's an example of packaging Javascript as a WSC and invoking it: https://stackoverflow.com/a/849970/48082

    Therefore, your problem should be easily solvable.

提交回复
热议问题