# Stable hashing across Julia versions

**URL:** https://discourse.julialang.org/t/stable-hashing-across-julia-versions/44423
**Category:** General Usage
**Created:** [August 4, 2020, 11:33pm UTC](https://discourse.julialang.org/t/stable-hashing-across-julia-versions/44423 "2020-08-04T23:33:14Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [August 6, 2020, 2:55pm UTC](https://discourse.julialang.org/t/stable-hashing-across-julia-versions/44423/5 "2020-08-06T14:55:22Z")

</div>

If the values are always arrays of ints or something comparable, then you could just use `write` to get a “canonical” binary representation and use CRC32 or SHA to hash that binary data. If the data is more complex, you could use [BSON](https://github.com/JuliaIO/BSON.jl) to serialize it and then hash the resulting BSON data.

---

_[View the full topic](https://discourse.julialang.org/t/stable-hashing-across-julia-versions/44423)._
