Convert Node Method to C#
- Status: Closed
- Prize: $10
- Entries Received: 6
- Winner: sanjay1208
Contest Brief
I need someone to convert the below method from node.js to c#
input a message and secret key should return the same signature string in both node.js and c#
cube.prototype._signMessage = function (message) {
var hmac = crypto.createHmac('sha512',new Buffer(this.secret, 'base64'));
hmac.update(message);
var signature = hmac.digest('base64');
return signature;
}
Please test your code with ...
message = "this is a message"
secret = "1a945afa-91cb-4836-a544-dec2a003e575"
and you should get
EGpsDWurIvL23owCNMd+JoJOvr6GqBbID6VLnsVcr9XzadKH/iLJS4JBYZmhO7fGz59bhK1XjHTqFBUCzIiJOA==
Recommended Skills
Employer Feedback
“Good job. Thanks”
bmchunu, South Africa.
Public Clarification Board
How to get started with contests
-
Post Your Contest Quick and easy
-
Get Tons of Entries From around the world
-
Award the best entry Download the files - Easy!