Closed MaBecker closed 2 months ago
Thanks! But wasn't it possible just to add this single function to HMAC?
exports.SHA256 = function(key) {
return new exports.HMAC(key, require('crypto').SHA256, 64, 32);
};
Or was there something else?
Wow, ok looks like have been way much over motivated..... Sure why not, just one file. What happens if require('crypto').SHA256
failes because sha256 is not available?
Sorry! Well, it'll only fail when the function is executed - there's no problem with it being in there and SHA256 not being supported if it's not used.
please check again.
Looks great - thanks for doing that!
based on hmac