encrypto_rust

Crates.ioencrypto_rust
lib.rsencrypto_rust
version0.2.0
sourcesrc
created_at2022-11-03 08:27:29.347628
updated_at2022-11-21 04:27:38.492715
descriptionstunning-encrypto is cross platform end-to-end encryption dependency.
homepagehttps://zot.ssdd.dev/encrypto/
repositoryhttps://github.com/ssddcodes/stunning-encrypto/tree/rust
max_upload_size
id704139
size37,953
Sandipsinh Dilipsinh Rathod (ssddOnTop)

documentation

README

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

Commit count: 0

cargo fmt