Glesha
SHA-2 for Gleam, supporting both Erlang and JavaScript 💖
Installation
To add the library, simply execute the following command:
gleam add glesha
Compatibility
This library requires Gleam version 1.0.0
or later.
Example
"howdy!"
|> bit_string.from_string()
|> glesha.hash(glesha.Sha256)
|> glesha.encode_hex()
// "08419486253228102a04995a0376ffdaec0bf1dbaf9cff3669f34d29ad483a02"
Reliability
This package uses the battle-tested crypto
module for Erlang/OTP and the reputable noble-hashes
library for JavaScript.
Documentation
Consult the HexDocs for API reference.
License
Glesha is licensed under the MIT license.