#encryption #encryption-key #libsodium #data-key #decryption #sodiumoxide

simplecrypt

simple wrapper around sodiumoxide (libsodium) to easily encrypt and decrypt data with a secret key

3 stable releases

1.0.2 Jul 12, 2021
1.0.1 May 5, 2020

#1974 in Cryptography

50 downloads per month
Used in 3 crates

MIT license

10KB
132 lines

Simple library that allows to easily encrypt and decrypt data with a secret key using sodium.


simplecrypt

Wrapper around sodiumoxide that supports encrypting and decrypting arbitrary data with a secret key.

Installation

simplecrypt is hosted on crates.io To use the crate, just add it to the [dependencies] section in your Cargo.toml file.

simplecrypt = "1.0"

Docs

You can find the documentation on the docs.rs page.

To build the documentation locally, clone the repository and run

cargo doc --open

Tests

To run the tests, clone the repository and run

cargo test

Dependencies

~18MB
~95K SLoC