View Source Nostr.Crypto (nostr v0.1.0)
Link to this section Summary
Link to this section Functions
@spec sha256(String.t()) :: <<_::256>>
Computes SHA256 on a binary and returns it as a binary
examples
Examples
iex> "6c7ab2f961a1bc3f13cdc08dc41c3f439adebd549a8ef1c089e81a5907376107"
...> |> Nostr.Crypto.sha256()
<<171, 106, 143, 29, 158, 43, 3, 51, 223, 248, 227, 112, 237, 111, 223, 226, 11, 46, 128, 8, 224, 69, 239, 179, 251, 50, 152, 194, 47, 117, 105, 218>>