#port-scan #cipher #masscan

blackrock2

A rust port of the Blackrock2 cipher

1 unstable release

0.1.0 Sep 6, 2024

#1338 in Cryptography

31 downloads per month

MIT/Apache

12KB
279 lines

A port of the Blackrock2 cipher used in Masscan to Rust. Its original purpose is efficiently randomizing the order of port scans without having to put every possible target in memory and shuffling. Original code.

Examples

use blackrock2::BlackRockIpGenerator;

for ip in BlackRockIpGenerator::new() {
    println!("{ip}")
}

lib.rs:

A port of the Blackrock2 cipher used in Masscan to Rust.

Its original purpose is efficiently randomizing the order of port scans without having to put every possible target in memory and shuffling.

Original code.

Examples

use blackrock2::BlackRockIpGenerator;

for ip in BlackRockIpGenerator::new() {
    println!("{ip}")
}

Dependencies

~1MB
~17K SLoC