~umgeher/utos-crypto

clone

read-only
https://git.sr.ht/~umgeher/utos-crypto
read/write
git@git.sr.ht:~umgeher/utos-crypto

You can also use your local clone with git send-email.

CRYPTO(UTOS) - UTOS (application)

NAME

utos_crypto - UTOS' Crypto module

DESCRIPTION

The utos_crypto is a group of functions with crypto focus.

SETUP

rebar3

Add to your deps in rebar.config:

{utos_crypto, {git, https://git.sr.ht/~umgeher/utos-crypto , {tag, 0.0.5 }}}

app.src

Add to your applications segment:

utos_crypto

EXPORTS

random_chars(Size) -> {ok, RandomChars}

Types

*Size*  = integer() > 0  
*RandomChars*  = [byte()]

Generate a random binary string with Size long.

random_hash() -> {ok, Hash}

Types

*Hash*  = [byte()]

Generate a random sha256 hash.

sha256({Type, Data}) -> {ok, Hash}

Types

*Type*  = bin | hex  
*Data*  = [byte()] | list()  
*Hash*  = [byte()]

To hash encode using sha256.

AUTHORS

Use ~umgeher/utos@lists.sr.ht to contact the developers.

OpenBSD 6.6 - March 10, 2020