End to End encryption (RSA) for multiple languages (cross-platform) with double encryption and double decryption methods
| Icon | Item | |:----:|:-----------------------------:| | 🥳 | Upcoming | | ⚖️ | License | | 📝 | ChangeLog |
xml
encrypto_rust = "2.0.0"
```rust 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);
}
```
| Supported Languages | Status | |---------------------|-----------------------------------------------------------------------------------------------------------| | Flutter | Completed and available here | | Java | Completed and available here | | JavaScript | Completed and available here |