Skip to content

goatm0n/rsa_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsa_utils

crates.io Documentation dependency status

A Rust library containing utility functions for the purpose of encrypting / decrypting files and reading / writing keyfiles.

Example

use rsa_utils::io::{
    encrypt_file,
    decrypt_file,
    write_key_pair_csv,
};
use std::path::PathBuf;
use rsa_rs::keys::keypair::KeyPair;

let key_path = PathBuf::from("key_path.txt");
let file_path = PathBuf::from("file_path.txt");
let key_pair = KeyPair::generate_key_pair(65537);

write_key_pair_csv(key_path, &key_pair);
encrypt_file(file_path, key_path);
decrypt_file(file_path, key_path);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages