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 or use the internally programmed symbols.
I did this project just for fun to learn new things. Please don't use it to do any harm to someones privacy!
```rust use libbruteforce::{crack, transform_fns, symbols, CrackParameter};
fn main() { let alphabet = symbols::fullalphabet(); // or let alphabet = symbols::buildalphabet(true, true, false, false, false, false, false) let input = String::from("a+c"); let sha256hash = String::from("3d7edde33628331676b39e19a3f2bdb3c583960ad8d865351a32e2ace7d8e02d"); let cp = CrackParameter::new(sha256hash.clone(), alphabet, 3, 0, transformfns::SHA256HASHING, true); let res = crack(cp); if res.is_success() { let sol = res.solution.unwrap(); } } ```
For example usage see https://github.com/phip1611/bruteforcer