Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/spaceeec/crux_crypto
- Owner: SpaceEEC
- Created: 2020-05-11T23:04:52.000Z (over 4 years ago)
- Default Branch: trunk
- Last Pushed: 2021-04-06T16:01:40.000Z (almost 4 years ago)
- Last Synced: 2024-10-30T14:09:35.608Z (2 months ago)
- Language: Elixir
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.