#encryption #argon2 #aes #cypher #crypto

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

#2084 in Cryptography

Download history 48/week @ 2024-07-25 107/week @ 2024-08-01 138/week @ 2024-08-08 226/week @ 2024-08-15 150/week @ 2024-08-22 433/week @ 2024-08-29 190/week @ 2024-09-05 75/week @ 2024-09-12 138/week @ 2024-09-19 120/week @ 2024-09-26 119/week @ 2024-10-03 84/week @ 2024-10-10 113/week @ 2024-10-17 86/week @ 2024-10-24 105/week @ 2024-10-31 108/week @ 2024-11-07

425 downloads per month
Used in the_encrypter

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–13MB
~176K SLoC