Crates.io | rsa_xml |
lib.rs | rsa_xml |
version | 0.1.0 |
source | src |
created_at | 2022-07-21 11:31:38.447365 |
updated_at | 2022-07-21 11:31:38.447365 |
description | A simple implementation of RSA key values in XML format, for encrypting and decrypting data |
homepage | https://github.com/ahmadbrainworks/rsa-xml |
repository | https://github.com/ahmadbrainworks/rsa-xml |
max_upload_size | |
id | 629591 |
size | 6,589 |
rsa-xml is a library for encrypting/decrypting data using RSA key values that are in xml format.
use rsa_xml{XmlRSA};
let rsa_xml = XmlRSA{
public_key: "public key file path",
private_key: "private key file path"
}
let encrypted = XmlRSA.ecnrypt("data"); // plaintext data to encrypt
println!("{}", encrypted);
use rsa_xml{XmlRSA};
let rsa_xml = XmlRSA{
public_key: "public key file path",
private_key: "private key file path"
}
let decrypted = XmlRSA.denrypt("data"); // encrypted data to decrypt
println!("{}", decrypted);