Skip to content
sha256 and sha224 cryptographic hash functions for Elm
Elm JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
LICENSE
README.md
Sha256.js
elm-upgrade-2018-12-08T081543.279Z.log
elm.json

README.md

sha256 and sha224 Cryptographically Secure Hash Functions for Elm

A simple conversion of a JavaScript sha256 library to Elm.

Thank you to Yi-Cyuan Chen for the JavaScript (github.com/emn178/js-sha256). That code is here in Sha256.js.

To install it in your development directory:

elm package install billstclair/elm-sha256

To use it from your code:

import Sha256 exposing (sha256, sha224)

hash = sha256("foo")
hash2 = sha224("foo")
You can’t perform that action at this time.