Amazon Ion Hash defines an algorithm for constructing a hash for any Ion value. For a given Ion value and consistent hash function, the algorithm guarantees hashing the value will always produce the same hash, independent of the value’s encoding (text or binary). The hash function to use is not declared by the specification—this enables the user to select the hash function most appropriate to their use case.

Ion hash is useful when determining whether two Ion values represent the same value, or determining whether an Ion value has changed. For example, a storage system might use Ion hashes to assert the integrity of its data.

For more information, see the Ion Hash Specification.


Latest News


Ion Hash .NET 1.0 Released
04 June 2020

This release provides full support for hashing all Ion values.

The Amazon.IonHashDotnet package is available via NuGet.

Release Notes Ion Hash .NET

Ion Hash JS 2.0 Released
31 March 2020

This release introduces a simple API for calculating an Ion hash of any value, including native JavaScript types as well as instances of ion-js 4.0’s dom.Value class.

Release Notes Ion Hash JS

Ion Hash JS 1.0.2 Released
05 November 2019

This release is a complete implementation of the Ion Hash Specification for JavaScript, and provides hashing decorators of ion-js’s Reader and Writer interfaces.

This package is available via NPM.

Ion Hash JS

Visit the News page for more announcements related to Ion Hash.