Returns a hexadecimal string representing a hash of the given data, which can either be Uint8Array or something that can be converted to a string.
This can be useful in situations where you want to capture an extremely concise characterization of some data to, for example, later detect whether it has changed. If two data have the same hash, it is statistically probably that they’re the same data.
$ ori Origami.hash/hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c
$ ori Origami.hash/hello!
ce06092fb948d9ffac7d1a376e404b26b7575bcc
$ ori Origami.hash/hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c
Here the middle input string is slightly different and so produces a (very different) hash string. The first and last inputs are the same, so they produce the same hash string.