benlaurie/objecthash
View on GitHub ↗ ★ 147 Ruby
A way to cryptographically hash objects (in the JSON-ish sense) that works cross-language. And, therefore, cross-encoding.
6 mentions on Hacker News by 4 people: 1 story, 5 comments · first 2016-11-02 · latest 2019-07-24
20082026
-
…project I didn't get a chance to work into this post (because it's entirely deserving of its own): https://github.com/benlaurie/objecthash To be clear: I think that's a niche use case and while I think ObjectHash does a great job of…
comment by lvh · 2019-07-24 · in How not to sign a JSON object -
…prepends the input data with 32 bytes of random data before hashing in order to prevent this. [0] https://github.com/benlaurie/objecthash#redactability
comment by aeijdenberg · 2018-11-05 · in Show HN: Interactive implementation of the NIST Blockchain use case flow chart -
…to be able to consistently hash JSON objects you might want to look at Ben Laurie's objecthash: https://github.com/benlaurie/objecthash It describes a consistent way to hash an object without defining a new format.
comment by aeijdenberg · 2017-03-14 · in Son – A minimal subset of JSON for machine-to-machine communication -
…documents may refer to the same underlying data structure, but all will have the same "objecthash": https://github.com/benlaurie/objecthash
comment by bascule · 2016-11-02 · in Introducing TJSON, a stricter, typed form of JSON -
…for TJSON (cryptographically authenticated data), and normalizing them is rather difficult: https://github.com/benlaurie/objecthash/blob/master/objectha...
comment by bascule · 2016-11-02 · in Introducing TJSON, a stricter, typed form of JSON