#secret #secret-key #encryption #data #libsodium #decryption #wrapper

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

#2281 in Cryptography

Download history 16/week @ 2024-07-20 38/week @ 2024-07-27 31/week @ 2024-08-03 12/week @ 2024-08-10 2/week @ 2024-08-17 51/week @ 2024-08-24 37/week @ 2024-08-31 15/week @ 2024-09-07 43/week @ 2024-09-14 67/week @ 2024-09-21 110/week @ 2024-09-28 24/week @ 2024-10-05 30/week @ 2024-10-12 13/week @ 2024-10-19 10/week @ 2024-10-26 28/week @ 2024-11-02

84 downloads per month
Used in 3 crates

MIT license

10KB
132 lines

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

lib.rs:

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

Dependencies

~19MB
~96K SLoC