#cli #encrypt #decrypt #masking

med_core

A Rust Powered Core Engine for M.E.D. Masking, Encryption, and Decryption CSV/JSON

21 releases (4 breaking)

0.6.4 Jul 8, 2023
0.6.3 Jul 7, 2023
0.6.0 Jun 30, 2023
0.5.9 Jun 25, 2023
0.1.0 May 28, 2023

#4 in #masking

Download history 187/week @ 2023-05-30 29/week @ 2023-06-06 43/week @ 2023-06-13 221/week @ 2023-06-20 97/week @ 2023-06-27 136/week @ 2023-07-04 26/week @ 2023-07-11 8/week @ 2023-07-18 29/week @ 2023-07-25 3/week @ 2023-08-01 49/week @ 2023-08-08 27/week @ 2023-08-15 24/week @ 2023-08-22 3/week @ 2023-08-29 61/week @ 2023-09-05 6/week @ 2023-09-12

94 downloads per month
Used in med_cli

Apache-2.0

76KB
2K SLoC

Crates.io Actions Status codecov Crates.io

M.E.D. (Mask, Encrypt, Decrypt) - The Core Engine for Masking, Encryption, and Decryption the CSV/JSON files

The core engine design for the plugin by different use case and context.

Currently its the CLI interface. If you have different programming or integration need, you can interact with the Core by is APIs.

Example


let now = Instant::now();

let mut new_params = Params::default();
new_params.conf_path = "../demo/conf/conf_json.yaml".to_owned();
new_params.file_path = "../demo/data/input/csv".to_owned();
new_params.mode = Mode::MASK;
new_params.file_type = FileType::CSV;

let mut new_app = App::new(new_params.clone()).await.unwrap();
let metrics = new_app.process().await.unwrap();
let audit_id = new_app.update_audit(format!("{:?}", now.elapsed())).await.unwrap();

Roadmap

  • csv processor
  • json processor
  • SDK for the med_core engine

Dependencies

~38–54MB
~1M SLoC