Nim wrapper for the libsodium library
Nim
Latest commit ea633eb Dec 3, 2016 @FedericoCeratto committed on GitHub Add TravisCI badge
Permalink
Failed to load latest commit information.
libsodium Minor cleanup Dec 3, 2016
.gitignore Initial commit May 10, 2016
.travis.yml Enable Travis CI Dec 3, 2016
LICENSE Initial commit May 10, 2016
README.adoc Add TravisCI badge Dec 3, 2016
libsodium.nimble Initial version May 13, 2016
test_sodium.nim Temporarily skip failing tests Dec 3, 2016

README.adoc

nim-libsodium

Nim wrapper for the libsodium library

badge badge badge badge

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

and the generated documentation for the sodium and sodium_sizes modules

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.