#rsa #stunning-encrypto #encryption #end-to-end-encrypton #rust-e2ee

encrypto_rsa

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

8 releases (stable)

Uses new Rust 2021

new 3.1.3 Nov 28, 2022
3.1.1 Nov 27, 2022
2.0.0 Nov 23, 2022
0.2.1 Nov 21, 2022

#551 in Cryptography

Download history 122/week @ 2022-11-19 93/week @ 2022-11-26

215 downloads per month
Used in encrypto_aes

MIT license

42KB
381 lines

Visitor Badge Crates Badge Crates Downloads

About Project

End to End encryption (RSA) for multiple languages (cross-platform) with double encryption and double decryption methods

Icon Item
🥳 Upcoming
⚖️ License
📝 ChangeLog

Usage (rust)

Implementation

Cargo

encrypto_rsa = latest

RSA

Documentation will be published soon at our website

You can try:

        let mut x = Vec::new();

        let encrypto = EncryptoRSA::init(512);
        let encrypto1 = EncryptoRSA::init(512);
        let msg = b"abc".as_slice();

        let enc = encrypto.encrypt(msg, EncryptoRSA::desterilize_pub_key(encrypto1.get_sterilized_pub_key())).unwrap();
        let dec = encrypto1.decrypt(enc.as_bytes());
        x.push(dec);

        let enc = encrypto.encrypt_with_pkcsv1_15(msg, EncryptoRSA::desterilize_pub_key(encrypto1.get_sterilized_pub_key())).unwrap();
        let dec = encrypto1.decrypt_with_pkcsv1_15(enc.as_bytes());
        x.push(dec);

        let enc = encrypto.double_encrypt(msg, EncryptoRSA::desterilize_pub_key(encrypto1.get_sterilized_pub_key())).unwrap();
        let dec = encrypto1.double_decrypt(enc.as_bytes(), encrypto.get_public_key());
        x.push(dec);

        let enc = encrypto.double_encrypt_with_pkcsv1_15(msg, encrypto1.pbl.clone()).unwrap();
        let dec = encrypto1.double_decrypt_with_pkcsv1_15(enc, encrypto.pbl.clone());
        x.push(dec);

        for f in x.iter() {
            assert_eq!(&msg.to_vec(), f);
        }

Please raise an issue here if the documentation isn't uploaded in long time

Upcoming

Supported Languages Status
Flutter Completed and available here
Java Completed and available here
JavaScript Completed and available here
  • Amazing encrypto with prevention against man in the middle attacks and AES-CBC with RSA key exchange for multiple language

License

Click here

Dependencies

~1.7–2.5MB
~54K SLoC