# Geting the hash sha-256 of a file for upload perpuses

**URL:** <https://discourse.elm-lang.org/t/geting-the-hash-sha-256-of-a-file-for-upload-perpuses/4486>\
**Category:** Learn\
**Created:** [October 15, 2019, 9:19am UTC](https://discourse.elm-lang.org/t/geting-the-hash-sha-256-of-a-file-for-upload-perpuses/4486 "2019-10-15T09:19:36Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![keisisqrl](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/keisisqrl/32/2447_2.png) [@keisisqrl](https://discourse.elm-lang.org/u/keisisqrl)\
**Post date:** [October 15, 2019, 12:32pm UTC](https://discourse.elm-lang.org/t/geting-the-hash-sha-256-of-a-file-for-upload-perpuses/4486/7 "2019-10-15T12:32:45Z")

</div>

Huh. I wonder if it trusts 32-bit math (skimming the code, it looks like maybe). I found out trying to implement chacha20 (which I might get back to some day) that 32-bit integers sort of work but act strangely because javascript. I think the Basics module warns about this.

The roll-your-own approach of the icidasset packages seems probably less efficient but it’s guaranteed to work.

---

_[View the full topic](https://discourse.elm-lang.org/t/geting-the-hash-sha-256-of-a-file-for-upload-perpuses/4486)._
