Crate ent_rs

Crate ent_rs 

Source
Expand description

§ent-rs

ent-rs is a library for analyzing the entropy and randomness of binary data. It provides byte/bit entropy, chi-square testing, mean, Pi estimation, and serial correlation.

use ent_rs::EntStats;
let data = b"example data";
let stats = EntStats::from_data(data, false);
println!("Entropy: {}", stats.entropy);

Structs§

EntStats
Result of statistical analysis on binary data.