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
Unless I'm missing something (which is very possible!) I assume the output of the two functions should be the same, but they are not. This is a problem for the codebase I'm working on right now, as we need the sha1 hex hashes to match in web and node environments. Any possible hints on where I may be going about this wrong?
(Extra note: this problem originates from object-hash throwing an error with latest browserify & tinyify, due to some quirks with browserify standalone builds. see goto-bus-stop/browser-pack-flat#39)
The text was updated successfully, but these errors were encountered:
@ungoldmanobject-hash treats its input as JS values, not as strings, and it can’t hash strings as-is (without introducing the risk of a collision). object-hash should provide the same output when run in browsers and Node.js, though (unless the object contains some browser- or Node.js-specific values).
Hi, apologies if this is addressed somewhere and I've missed it, but I've searched to no avail so thought I'd bring it up here.
I've noticed that the default hash output does not match node's crypto output.
Example code:
Unless I'm missing something (which is very possible!) I assume the output of the two functions should be the same, but they are not. This is a problem for the codebase I'm working on right now, as we need the sha1 hex hashes to match in web and node environments. Any possible hints on where I may be going about this wrong?
(Extra note: this problem originates from
object-hash
throwing an error with latest browserify & tinyify, due to some quirks with browserify standalone builds. see goto-bus-stop/browser-pack-flat#39)The text was updated successfully, but these errors were encountered: