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