project_ares_test 0.10.0

Automated decoding tool, Ciphey but in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use ares::cli::parse_cli_args;
use ares::cli_pretty_printing::program_exiting_successful_decoding;
use ares::perform_cracking;

fn main() {
    // Turn CLI arguments into a library object
    let (text, config) = parse_cli_args();
    let result = perform_cracking(&text, config);
    match result {
        // TODO: As result have array of CrackResult used,
        // we can print in better way with more info
        Some(result) => {
            program_exiting_successful_decoding(result);
        }
        None => ares::cli_pretty_printing::failed_to_decode(),
    }
}