pack2 icon indicating copy to clipboard operation
pack2 copied to clipboard

option: mask list set operations

Open roycewilliams opened this issue 5 years ago • 1 comments

Would be super useful to have a general way to merge, split, expand, and detect overlap in lists of masks.

For example, these masks:

?l?l?l?l?l?l?l
?l?l?l?l?l?l?u
?l?l?l?l?l?l?d
?l?l?l?l?l?l?s

... could be merged to:

?l?l?l?l?l?l?a

"Splitting" would be the opposite - turning ?a into its components.

Expanding could also be useful, perhaps with thresholding that is a little more sophisticated, based on target keyspace or runtime. For example:

?l?l?l?l?l

... could be split to:

?l?l?l?la
?l?l?l?lb
?l?l?l?lc
[etc]

... to fit a specific target runtime (--PPS).

roycewilliams avatar May 02 '20 20:05 roycewilliams

It would also be highly useful to be able to merge two lists of masks that include frequency data.

For example, merging these two lists:

?l?l?l?l?l?l?l,25
?l?l?l?l?l?l?u,20
?l?l?l?l?l?l?d,15
?l?l?l?l?l?l?s,10
?l?l?l?l?l?l?l,3
?l?l?l?l?l?l?u,8
?l?l?l?l?l?l?d,7
?l?l?l?l?l?l?s,6

... would yield:

?l?l?l?l?l?l?l,28
?l?l?l?l?l?l?u,28
?l?l?l?l?l?l?d,22
?l?l?l?l?l?l?s,16

Not sure if this should be part of this enhancement, or a separate one?

roycewilliams avatar May 10 '20 01:05 roycewilliams