2023-04-27 04:58:19 +00:00
|
|
|
use cryptopals::bvecs;
|
2023-04-28 03:19:27 +00:00
|
|
|
use cryptopals::friendly::likely_ecb;
|
2023-04-27 04:58:19 +00:00
|
|
|
use cryptopals::prelude::*;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let inputs = bvecs!("inputs.txt");
|
|
|
|
|
|
|
|
for input in inputs {
|
2023-04-28 03:19:27 +00:00
|
|
|
if likely_ecb(&input) {
|
|
|
|
println!("possible ECB: {}", input.to_hex());
|
2023-04-27 04:58:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|