#encryption #argon2 #crypto #aes #cypher

simple_crypt

A simple and high level library to encrypt and decrypt texts, files, folders and any data with it

11 releases

0.2.3 Aug 13, 2022
0.2.2 Aug 13, 2022
0.1.9 Aug 11, 2022

#1784 in Cryptography

Download history 47/week @ 2023-12-22 118/week @ 2023-12-29 27/week @ 2024-01-05 71/week @ 2024-01-12 83/week @ 2024-01-19 76/week @ 2024-01-26 60/week @ 2024-02-02 65/week @ 2024-02-09 94/week @ 2024-02-16 137/week @ 2024-02-23 114/week @ 2024-03-01 181/week @ 2024-03-08 190/week @ 2024-03-15 26/week @ 2024-03-22 35/week @ 2024-03-29 28/week @ 2024-04-05

338 downloads per month

MIT license

14KB
167 lines

Simple Crypt

A simple and high-level rust library to encrypt and decrypt texts, files, folders and any data with it For encryption, it uses AES-GCM-SIV-256 and Argon2

Usage

add this to Cargo.toml:

simple_crypt = "*"

Examples

Encrypting

let encrypted_data = encrypt(b"example text", b"example passowrd").expect("Failed to encrypt");

Decrypting

let data = decrypt(&encrypted_data, b"example passowrd").expect("Failed to decrypt");

And there are other functions to encrypt files or folders see the documentation

Go to Documentation | Repository


lib.rs:

Simple Crypt

simple_crypt is a high-level library to encrypt and decrypt data

For encryption it uses AES-GCM-SIV-256 and Argon2

Usage

add this to Cargo.toml:

simple_crypt = "*"

Examples

// Encrypting

use simple_crypt::encrypt;
let encrypted_data = encrypt(b"example text", b"example password").expect("Failed to encrypt");

// Decrypting

use simple_crypt::decrypt;
let data = decrypt(&encrypted_data, b"example password").expect("Failed to decrypt");

And there are other functions to encrypt files or folders see the documentation

Documentation Repository

Dependencies

~4–15MB
~182K SLoC