libbruteforce - A Rust library to brute force hashes with multiple threads
This library spawns a thread for each cpu on your system to brute force a password/hash. It offers built-in support for MD5, SHA1, and SHA256, but you can also provide your own hashing function as a parameter.
You can specify your own alphabet to limit search space or use the internally hard-coded symbols (the most common chars).
JUST FOR FUN!
I did this project just for fun to learn new things. Please don't use it to do any harm to someone's privacy!
Maximum Performance
If you use this in a project: To let the Rust compiler produce a binary with maximum performance, follow the steps here:
- https://www.reddit.com/r/rust/comments/lyck1u/compiling_for_maximum_performance/
- https://deterministic.space/high-performance-rust.html
MSRV
1.56.1
Works On
Linux, MacOS, Windows (targets with Rusts standard library)
Performance Hint
Always execute binaries that use this library in release mode, e.g. cargo run --bin bench --release
.
Otherwise, the performance is really poor. For maximum Rust performance, see:
https://deterministic.space/high-performance-rust.html
Example usage
use sha256_hashing;
use BasicCrackParameter;
use ;
use SimpleLogger;
/// Minimal example.
README on github: https://github.com/phip1611/bruteforcer Documentation on docs.rs: https://docs.rs/libbruteforce/