simple_crypt

Crates.iosimple_crypt
lib.rssimple_crypt
version0.2.3
sourcesrc
created_at2022-08-10 14:58:39.822635
updated_at2022-08-13 01:54:04.489024
descriptionA simple and high level library to encrypt and decrypt texts, files, folders and any data with it
homepage
repositoryhttps://github.com/NiiightmareXD/simple_crypt
max_upload_size
id642676
size14,665
(NiiightmareXD)

documentation

https://docs.rs/simple_crypt

README

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

Commit count: 23

cargo fmt