You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varhashableBase=$"{config.SecurityKey}{signaturePath}{config.UserIp}{expires}"+ parameterData // with a for loop;
PHP does this, which looks right 👍
$hashableBase = $securityKey.$signature_path.$expires;
// If using IP validationif(!is_null($user_ip))
{
$hashableBase .= $user_ip;
}
$hashableBase .= $parameter_data;
So, which library is right?
Is the order of the components of the hashable base not important?
Can you provide a test suite, preferably in JavaScript, so that I can use it to test my Go code? (I'm hesitant to use the C# test suite, as it does not seem to follow the specifications).
Please advise, thanks.
Note: No library implements the limit functionality (I guess the caller can just put it the url search before signing 🤔).
The text was updated successfully, but these errors were encountered:
I'm currently implementing a signing library for Go.
I read the docs.
Then I looked into the JS, Python, Java, C# and PHP implementations.
The docs state that the hashable base should be:
and give this as an example hashable base 👍
JS does this, which looks right 👍
Python flips the user IP with the parameter data 👎
Java flips the user IP with the parameter data 👎
C# puts the user IP before the expiration 😱:
PHP does this, which looks right 👍
So, which library is right?
Is the order of the components of the hashable base not important?
Can you provide a test suite, preferably in JavaScript, so that I can use it to test my Go code? (I'm hesitant to use the C# test suite, as it does not seem to follow the specifications).
Please advise, thanks.
Note: No library implements the limit functionality (I guess the caller can just put it the url search before signing 🤔).
The text was updated successfully, but these errors were encountered: