Does VBA have a Hash_HMAC
Hi I am trying to Encrypt a string to invoke a web service from VBA. I need to do the following function in VBA and i have example code in PHP. Here is the PHP code. Does anyone know how to do this in VBA? $binaryHash = hash_hmac('sha512', $url.$timestamp, $ws_session_array["sharedSecret"], true); $hash = base64_encode($binaryHash); Here's what you need: Public Function Base64_HMACSHA1(ByVal sTextToHash As String, ByVal sSharedSecretKey As String) Dim asc As Object, enc As Object Dim TextToHash() As Byte Dim SharedSecretKey() As Byte Set asc = CreateObject("System.Text.UTF8Encoding") Set enc =