-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
In the library's current state, if I have something like:
#[derive(Redact)]
struct AuthInfo {
login: String,
#[redact]
password: String,
}
fn main() {
let info = AuthInfo {
login: "name".to_string(),
password: "/Jb@`?f.?%!hj2".to_string(),
};
println!("{info:#?}");
}It will output
AuthInfo {
login: "name",
password: "/**@`?*.?%!***",
}Which reveals a good portion of the password. As far as I could find, there was not a way to change this behavior. In my opinion it is pretty much a deal breaker as far as this library goes. I would be willing to submit a PR if needed. Not sure the desired method for that though, like a feature flag, an extra option or what.
raffomania
Metadata
Metadata
Assignees
Labels
No labels