| Crates.io | ent-rs |
| lib.rs | ent-rs |
| version | 0.1.1 |
| created_at | 2025-05-23 18:58:31.87517+00 |
| updated_at | 2025-05-23 19:30:48.548089+00 |
| description | Entropy and randomness analysis tool for binary files (Rust port of ent.hpp) |
| homepage | |
| repository | https://github.com/chbtoys/ent-rs |
| max_upload_size | |
| id | 1686619 |
| size | 21,590 |
ent-rs is a Rust library for analyzing the entropy and randomness characteristics of binary data. It is a Rust port and extension of the functionality from HÃ¥kan Blomqvist's ent.hpp.
It is useful for evaluating:
Add to your Cargo.toml:
ent-rs = "0.1"
use ent_rs::EntStats;
let data = std::fs::read("mydata.bin").unwrap();
let stats = EntStats::from_data(&data, false);
println!("Entropy: {:.4}", stats.entropy);