mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 16:25:01 -04:00
If the entropy of the output is higher than the entropy of the input then the branch will return
This commit is contained in:
parent
8c3d3a3d94
commit
d29f6efad8
1 changed files with 2 additions and 2 deletions
|
@ -308,8 +308,8 @@ class Magic {
|
|||
let outputEntropy = 0;
|
||||
if (entropyTests) {
|
||||
outputEntropy = this.calcEntropy(new Uint8Array(output));
|
||||
console.log(entropyTests.output);
|
||||
console.log(outputEntropy);
|
||||
if (inputEntropy < outputEntropy)
|
||||
return;
|
||||
}
|
||||
|
||||
const outputRegexes = OperationConfig[op.op].outputRegexes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue