I clone git and install using "cargo build --release --bin rust-obfuscator", and rust-obfuscator output prorperly.

And I create new cargo repository, and I write "main.rs" and Cargo.toml" like next:
`use cryptify;
mod word_counter;
use std::env;
use std::fs;
use word_counter::count_words;
fn main() {
let b = "Hello World";
println!("{}", b);
let args: Vec = env::args().collect();
if args.len() < 2 {
eprintln!("Usage: {} ", args[0]);
return;
}
let filename = &args[1];
let content = fs::read_to_string(filename).expect("Could not read file");
let word_counts = count_words(&content);
for (word, count) in word_counts.iter() {
println!("{}: {}", word, count);
}
}
fn dummy() {
let a = 1;
let b = 2;
let c = a + b;
println!("{}", c);
}
fn calc_sum(a: i32, b: i32) -> i32 {
cryptify::flow_stmt!();
let c = a + b;
c
}
fn helloooo(){
println!("hi");
}
`
`[package]
name = "sample"
version = "0.1.0"
edition = "2024"
[dependencies]
cryptify = "3.1.1"`
As described in the documentation, I attempted to obfuscate my source code using rust-obfuscator "./rust-obfuscator/target/release/rust-obfuscator ./sample/src/main.rs ".

However, the result was as follows:
use cryptify ; mod word_counter ; use std :: env ; use std :: fs ; use word_counter :: count_words ; fn main () { cryptify :: flow_stmt ! () ; let b = cryptify :: encrypt_string ! ("Hello World") ; println ! ("{}" , b) ; let args : Vec < String > = env :: args () . collect () ; if args . len () < 2 { eprintln ! ("Usage: {} <filename>" , args [0]) ; return ; } let filename = & args [1] ; let content = fs :: read_to_string (filename) . expect ("Could not read file") ; let word_counts = count_words (& content) ; for (word , count) in word_counts . iter () { println ! ("{}: {}" , word , count) ; } } fn dummy () { cryptify :: flow_stmt ! () ; let a = 1 ; let b = 2 ; let c = a + b ; println ! ("{}" , c) ; } fn calc_sum (a : i32 , b : i32) -> i32 { cryptify :: flow_stmt ! () ; let c = a + b ; c } fn helloooo () { println ! ("hi") ; }
- first, output code is stripped. every newline character were deleted.
- second, output code is not obfuscated.
Did I use it incorrectly? I would appreciate it if you could provide a solution.
I clone git and install using "cargo build --release --bin rust-obfuscator", and rust-obfuscator output prorperly.
And I create new cargo repository, and I write "main.rs" and Cargo.toml" like next:
`use cryptify;
mod word_counter;
use std::env;
use std::fs;
use word_counter::count_words;
fn main() {
let b = "Hello World";
println!("{}", b);
let args: Vec = env::args().collect();
if args.len() < 2 {
eprintln!("Usage: {} ", args[0]);
return;
}
let filename = &args[1];
let content = fs::read_to_string(filename).expect("Could not read file");
let word_counts = count_words(&content);
for (word, count) in word_counts.iter() {
println!("{}: {}", word, count);
}
}
fn dummy() {
let a = 1;
let b = 2;
let c = a + b;
println!("{}", c);
}
fn calc_sum(a: i32, b: i32) -> i32 {
cryptify::flow_stmt!();
let c = a + b;
c
}
fn helloooo(){
println!("hi");
}
`
`[package]
name = "sample"
version = "0.1.0"
edition = "2024"
[dependencies]
cryptify = "3.1.1"`
As described in the documentation, I attempted to obfuscate my source code using rust-obfuscator "./rust-obfuscator/target/release/rust-obfuscator ./sample/src/main.rs ".
However, the result was as follows:
use cryptify ; mod word_counter ; use std :: env ; use std :: fs ; use word_counter :: count_words ; fn main () { cryptify :: flow_stmt ! () ; let b = cryptify :: encrypt_string ! ("Hello World") ; println ! ("{}" , b) ; let args : Vec < String > = env :: args () . collect () ; if args . len () < 2 { eprintln ! ("Usage: {} <filename>" , args [0]) ; return ; } let filename = & args [1] ; let content = fs :: read_to_string (filename) . expect ("Could not read file") ; let word_counts = count_words (& content) ; for (word , count) in word_counts . iter () { println ! ("{}: {}" , word , count) ; } } fn dummy () { cryptify :: flow_stmt ! () ; let a = 1 ; let b = 2 ; let c = a + b ; println ! ("{}" , c) ; } fn calc_sum (a : i32 , b : i32) -> i32 { cryptify :: flow_stmt ! () ; let c = a + b ; c } fn helloooo () { println ! ("hi") ; }Did I use it incorrectly? I would appreciate it if you could provide a solution.