9 stable releases (3 major)
4.0.0 | Sep 6, 2023 |
---|---|
3.2.4 | Jan 5, 2023 |
3.1.3 | Nov 28, 2022 |
2.0.0 | Nov 23, 2022 |
0.2.1 | Nov 21, 2022 |
#10 in #rsa
94 downloads per month
Used in encrypto_aes
12KB
179 lines
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.3–2MB
~36K SLoC