base64 decode - nul in string
问题 I'm trying to create function that will run private API calls on some sites. All those sites are using authentication by signature of the API call as follows in php: base64_encode( hash_hmac('sha512', $post_data, base64_decode($secret), true) ) Using package digest and RCurl I can easily write as: base64Encode( hmac(key = base64Decode(secret), object = post_data, algo = 'sha512', raw = TRUE) ) I'm fighting whole day with the hmac key parameter input: key = base64Decode(secret) The issue is