Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spaceeec/crux_crypto

Elixir wrapper for a very small subset of libsodium.
https://github.com/spaceeec/crux_crypto

Last synced: 24 days ago
JSON representation

Elixir wrapper for a very small subset of libsodium.

Awesome Lists containing this project

README

        

# Crux.Crypto [![](https://github.com/SpaceEEC/crux_crypto/workflows/Tests/badge.svg?event=push&branch=master)](https://github.com/SpaceEEC/crux_crypto/actions)

Crux.Crypto wraps a very small subset of [libsodium](https://github.com/jedisct1/libsodium) using [erl_nif](http://erlang.org/doc/man/erl_nif.html)s.

This subset consists of the functions
- `randombytes_buf`
- `crypto_secretbox_easy`
- `crypto_secretbox_open_easy`
- `crypto_sign_verify_detached`

## Installation

Like usual, add `crux_crypto` to your list of dependencies in your `mix.exs` file:

```elixir
def deps() do
[
{:crux_crypto, github: "SpaceEEC/crux_crypto"}
]
end
```

### Windows

You need to have the [Visual C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) installed.

Then launch a `x64 Native Tools Command Prompt [...]` and install Crux.Crypto using it.

### Everything else

You need to have your regular build tools installed (read: make and a C compiler).
You also need sodium and its headers.