Details
| ID | CalculateEntropy |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | entropy |
README
Calculates the entropy for the given data.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | entropy |
| Cortex XSOAR Version | 0.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| data | The data for which to calculate entropy. |
| minimum_entropy | The minimum entropy value. Default is 0. |
Outputs
| Path | Description | Type |
|---|---|---|
| EntropyResult.checked_value | The given value (data). | String |
| EntropyResult.entropy | The entropy score. | Number |
Script Example
!CalculateEntropy data=abcd
Context Example
{
"EntropyResult": {
"checked_value": "abcd",
"entropy": 2
}
}
Human Readable Output
Entropy results
| Checked Value | Entropy |
|---|---|
| abcd | 2.0 |
args: - default: true description: The data for which to calculate entropy. name: data required: true - defaultValue: '0' description: The minimum entropy value. Default is 0. name: minimum_entropy comment: Calculates the entropy for the given data. commonfields: id: CalculateEntropy version: -1 name: CalculateEntropy outputs: - contextPath: EntropyResult.checked_value description: The given value (data). type: String - contextPath: EntropyResult.entropy description: The entropy score. type: Number script: '-' subtype: python3 tags: - entropy timeout: '0' type: python dockerimage: demisto/python3:3.12.13.10404775 fromversion: 5.0.0 tests: - No tests (auto formatted)