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

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

#2481 in Cryptography

Download history 13/week @ 2024-11-17 8/week @ 2024-11-24 36/week @ 2024-12-01 48/week @ 2024-12-08 16/week @ 2024-12-15 4/week @ 2025-01-05 18/week @ 2025-01-12 39/week @ 2025-01-19 21/week @ 2025-01-26 26/week @ 2025-02-02 47/week @ 2025-02-09 37/week @ 2025-02-16 28/week @ 2025-02-23 30/week @ 2025-03-02

148 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
~95K SLoC