README.md
# Glesha2
[](https://github.com/bunopnu/glesha2/actions/workflows/test.yml)
[](https://hex.pm/packages/glesha2)
[](https://hexdocs.pm/glesha2/)
SHA-2 for Gleam, supporting both Erlang and JavaScript 💖
## Installation
To add the library, simply execute the following command:
```sh
gleam add glesha2
```
## Example
```gleam
"howdy!"
|> bit_string.from_string()
|> glesha2.hash(glesha2.Sha256)
|> glesha2.hex()
// 08419486253228102a04995a0376ffdaec0bf1dbaf9cff3669f34d29ad483a02
```
## Reliability
This package uses the battle-tested [`crypto`](https://www.erlang.org/doc/man/crypto) module for Erlang/OTP and the reputable [`noble-hashes`](https://github.com/paulmillr/noble-hashes) library for JavaScript.
## Documentation
Consult the [HexDocs](https://hexdocs.pm/glesha2/) for API reference.
## License
Glesha2 is licensed under the MIT license.