#encryption #rsa #file-encryption #stunning-encrypto #rust-e2ee #local-file #end-to-end-encryptio

encrypto_rust

stunning-encrypto is cross platform end-to-end encryption dependency

2 unstable releases

0.2.0 Nov 21, 2022
0.1.0 Nov 3, 2022

#53 in #file-encryption

MIT license

36KB
380 lines

About Project

End to End encryption (RSA e2ee) for multiple languages (cross-platform) and Value password protection (DES encryption) specially for local file encryption!

Icon Item
🥳 Upcoming
⚖️ License
📝 ChangeLog

Usage (rust)

Implementation

Cargo

encrypto_rust = "0.2.0"

RSA

RSA Init

let encrypto = EncryptoRSA::init(1024);

RSA Encrypt

let public_key = encrypto.get_public_key(); //returns PublicKey struct
let msg = "Alo".to_string(); // sample message to be encrypted 
let enc = e.encrypt_from_string(msg.clone(), public_key.clone()); // returns encrypted msg as base64 string

Or

let enc_from_bytes = e.encrypt_from_bytes(bytes, public_key); // returns encrypted bytes as base64 string

RSA Decrypt

let dec = encrypto.decrypt_as_string(enc); // returns decoded msg as string

Or

let dec_from_bytes = encrypto.decrypt_as_bytes(enc_from_bytes); // returns bytes as Vec<u8>

DES

Unavailable for rust as of now

Upcoming

Supported Languages Status
Flutter Completed and available here
Java Completed and available here
JavaScript Completed and available here
  • And DES support for rust

License

Click here

Dependencies

~1.7–2.7MB
~57K SLoC