Zodium

Zig-compiled libsodium bindings for Elixir.

Installation

Install libsodium with your favorite package manager, with “-dev” if its repository splits source and executable packages.

If available in Hex, the package can be installed by adding zodium to your list of dependencies in mix.exs:

def deps do
  [
    {:zodium, "~> 0.1.0"}
  ]
end

The zig toolchain must be installed as well. Either use your package manager, or let Mix do it with mix zig.get after running mix deps.get. You may also set ZIG_ARCHIVE_PATH to a local installation of zig.

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/zodium.