rsa_xml

Crates.iorsa_xml
lib.rsrsa_xml
version0.1.0
sourcesrc
created_at2022-07-21 11:31:38.447365
updated_at2022-07-21 11:31:38.447365
descriptionA simple implementation of RSA key values in XML format, for encrypting and decrypting data
homepagehttps://github.com/ahmadbrainworks/rsa-xml
repositoryhttps://github.com/ahmadbrainworks/rsa-xml
max_upload_size
id629591
size6,589
Ahmad Abdullahi Adamu (ahmadbrainworks)

documentation

https://docs.rs/crate/rsa-xml/0.1.0

README

RSA XML Encrypter/Decrypter

Summary

rsa-xml is a library for encrypting/decrypting data using RSA key values that are in xml format.

Usage

encryption

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);



decryption

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);



Commit count: 3

cargo fmt