Summary
It would be useful to have a number of operations to perform common set theory tasks on data. Operations could include:
- Union
- Intersection
- Set Difference
- Symmetric Difference
- Cartesian Product
- Power Set
Details here: https://en.wikipedia.org/wiki/Set_theory
Multiple sets could be input with a delimiter between them in a similar fashion to the 'Diff' operation.
There are some operations already in CyberChef which fulfil some of these functions (such as the 'Unique' operation), however it would be useful to have a full set dedicated to multiple input sets. These operations could live in the 'Arithmetic/Logic' category.
Example
Operation: Union
Args:
- Sample delimiter: \n\n
- Item delimiter: ,
Input:
One,Two,Three
Two,Three,Four
Output:
Operation: Intersection
Args:
- Sample delimiter: \n\n
- Item delimiter: ,
Input:
One,Two,Three
Two,Three,Four
Output:
Operation: Set Difference
Args:
- Sample delimiter: \n\n
- Item delimiter: ,
Input:
One,Two,Three
Two,Three,Four
Output:
Operation: Symmetric Difference
Args:
- Sample delimiter: \n\n
- Item delimiter: ,
Input:
One,Two,Three
Two,Three,Four
Output:
Operation: Cartesian Product
Args:
- Sample delimiter: \n\n
- Item delimiter: ,
Input:
Output:
(One,A),(Two,B),(Three,C)
Operation: Power Set
Args:
Input:
Output:
One
Two
Three
One,Two
One,Three
Two,Three
One,Two,Three
Summary
It would be useful to have a number of operations to perform common set theory tasks on data. Operations could include:
Details here: https://en.wikipedia.org/wiki/Set_theory
Multiple sets could be input with a delimiter between them in a similar fashion to the 'Diff' operation.
There are some operations already in CyberChef which fulfil some of these functions (such as the 'Unique' operation), however it would be useful to have a full set dedicated to multiple input sets. These operations could live in the 'Arithmetic/Logic' category.
Example
Operation: Union
Args:
Input:
Output:
Operation: Intersection
Args:
Input:
Output:
Operation: Set Difference
Args:
Input:
Output:
Operation: Symmetric Difference
Args:
Input:
Output:
Operation: Cartesian Product
Args:
Input:
Output:
Operation: Power Set
Args:
Input:
Output: