01-18-2021, 04:32 PM
Hey.
I'm not sure about your math... but then again my knowledge of probabilities is limited.
So allow me to jump straight to the maskprocessor.
The way I see it -qr aren't implemented poorly. I think the docs are just worded poorly.
They say "Maximum number of ..." when they should probably refer to it as a cut-off point.
I mean, if you wanted no consecutive chars, you'd cut every plain that contains 2 or more consecutive chars.
And -q2 does exactly that.
If you wanted every char to occur only once, you'd cut every plain that contains a char more than 2 times.
And -r2 does exactly that.
Also, I guess it would make much more sense to implement markov chains than randomization.
I'm not sure about your math... but then again my knowledge of probabilities is limited.
So allow me to jump straight to the maskprocessor.
The way I see it -qr aren't implemented poorly. I think the docs are just worded poorly.
They say "Maximum number of ..." when they should probably refer to it as a cut-off point.
I mean, if you wanted no consecutive chars, you'd cut every plain that contains 2 or more consecutive chars.
And -q2 does exactly that.
If you wanted every char to occur only once, you'd cut every plain that contains a char more than 2 times.
And -r2 does exactly that.
Also, I guess it would make much more sense to implement markov chains than randomization.