libsodium

libsodium wrapper

Readme

nim-libsodium

Nim wrapper for the libsodium library

Build Status badge tags License

Warning
This library is under development and has not been reviewed by 3rd parties

Features

  • Wrap libsodium and expose only memory-safe entities

  • Follow libsodium naming convention for most functions

  • Tested on Linux

  • Basic unit tests

  • No homemade crypto

Usage

sudo apt-get install libsodium18
nimble install libsodium
import libsodium.sodium
import libsodium.sodium_sizes

let
  msg = "hello and goodbye"
  (pk, sk) = crypto_box_keypair()
  nonce = randombytes(crypto_box_NONCEBYTES())
  ciphertext = crypto_box_easy(msg, nonce, pk, sk)

Contributing

Testing and PRs are welcome.

Need help? Read Nimble
Available versions:
License: LGPL 3

Project website Hosted docs