#secret-key #encryption #data #libsodium #decryption #wrapper #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

#1984 in Cryptography

Download history 35/week @ 2024-03-04 31/week @ 2024-03-11 40/week @ 2024-03-18 27/week @ 2024-03-25 81/week @ 2024-04-01 38/week @ 2024-04-08 40/week @ 2024-04-15 22/week @ 2024-04-22 10/week @ 2024-04-29 31/week @ 2024-05-06 19/week @ 2024-05-13 15/week @ 2024-05-20 26/week @ 2024-05-27 23/week @ 2024-06-03 28/week @ 2024-06-10 12/week @ 2024-06-17

91 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
~99K SLoC