bunopnu / glesha

SHA-2 for Gleam

Home Page:https://hex.pm/packages/glesha

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glesha

Test Status Package Version Hex Docs

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.

About

SHA-2 for Gleam

https://hex.pm/packages/glesha

License:MIT License


Languages

Language:Gleam 100.0%