Node.js Hmac SHA256 base64 of string Node.js Hmac SHA256 base64 of string android android

Node.js Hmac SHA256 base64 of string


You can use this line:

let test = crypto.createHmac('sha256', "key").update("json").digest("base64");

Convert to base64 last.


If you want to use a HMAC then you need to use the method crypto.createHmac(algorithm, key).

I'm still missing the salt in node.js

It seems that you do not use the salt in your Java code...