https://github.com/billstclair/elm-sha256
sha256 and sha224 cryptographic hash functions for Elm
https://github.com/billstclair/elm-sha256
Last synced: 10 months ago
JSON representation
sha256 and sha224 cryptographic hash functions for Elm
- Host: GitHub
- URL: https://github.com/billstclair/elm-sha256
- Owner: billstclair
- License: mit
- Created: 2016-10-12T11:26:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T21:13:04.000Z (almost 3 years ago)
- Last Synced: 2025-08-13T17:11:37.679Z (10 months ago)
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/billstclair/elm-sha256/latest/
- Size: 55.7 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://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")
```
190907: Builds in Elm 0.19.1