stefanpenner / hash-for-dep

7 stars 11 forks source link

[BUGFIX] restore old behavior – hashing garbage input should not error #56

Closed stefanpenner closed 5 years ago

stefanpenner commented 5 years ago

hashForDep with invalid input, would not error rather would produce a checksum. So restoring this for now, although we should remove in the next major version.

One deviation from the old behavior is to ensure the all garbage input doesn’t produce the same hash, rather it will get a hash based on inputs provided.

Context: