python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
HMAC produces different strings in Python3 vs Golang
I have a Golang function that calculates hmac for a given key and challenge. The go code is
func get_hmac64(psk string, challenge string) string {
mac := hmac.New(sha3.New256, []byte(psk))
mac...
amrx
Votes: 0
Answers: 1
Problem with recreating python b64encode and hmac function in C#
I have to create a function that generates exactly the same signature as it does in python. Here is my code
if __name__ == '__main__':
client_secret = 'aasfeef422c2dsa84fe9e7f56e6f214b'
clien...
pewocis495
Votes: 0
Answers: 1
How SurveyMonkey API creates the hmac?
We are trying to verify that the SurveyMonkey hmac we receive (sm-signature) is correct. To check this we create an hmac and compare it to SurveyMonkey's hmac.
We create the hmac as follows (we are wo...
NoSe
Votes: 0
Answers: 1
Rust equivalent of hmac digest in Python
I'm trying to find the Rust equivalent of the function below in Python. I've looked into the hmac crate but it's not clear how to get the same digest.
import base64
import hashlib
import hmac
def hm...
Kamil Sindi
Votes: 0
Answers: 1