output base64 code after sha256 signature encryption:
JS:
const crypto = require("crypto");
var sign = crypto.createHmac("sha256",secretKey).update("1234567890").digest("base64");
return sign //gillOqwrSirL5cH4kiL7px1hSJ5tog/NfiY5J8T/Xq0=
import hmac
mac = hmac.new(bytes(secretKey, encoding="utf8"), bytes("1234567890", encoding="utf-8"), digestmod="sha256")
d = mac.digest()
return base64.b64encode(d)//9c1+B5qU/NXET8TuNIR0Yh92mIowEy20W44p7IHNpE=
is also sha256 encryption, two programs use to sign the same secretKey, why the output of the encryption results are different?