Base64Decode

Decodes an input in Base64 format.

python · Filters And Transformers

Details

IDBase64Decode
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775
TagsUtility transformer string incident-action-button

README

Decodes an input in Base64 format.

Script Data


Name Description
Script Type python3
Tags Utility, transformer, string
Cortex XSOAR Version 5.0.0

Inputs


Argument Name Description
value The value to decode in Base64 format.

Outputs


Path Description Type
Base64.decoded The decoded output in Base64 format. string
Base64.originalValue The passed value that was decoded. string

Script Examples

Example command

!Base64Decode value=VGhpcyBpcyBhIHRlc3Q

Context Example

{
    "Base64": {
        "decoded": "This is a test",
        "originalValue": "VGhpcyBpcyBhIHRlc3Q"
    }
}
commonfields:
  id: Base64Decode
  version: -1
name: Base64Decode
script: ''
type: python
tags:
- Utility
- transformer
- string
- incident-action-button
comment: Decodes an input in Base64 format.
enabled: true
args:
- name: value
  required: true
  default: true
  description: The value to decode in Base64 format.
outputs:
- contextPath: Base64.decoded
  description: The decoded output in Base64 format.
  type: string
- contextPath: Base64.originalValue
  description: The passed value that was decoded.
  type: string
scripttarget: 0
isllm: false
subtype: python3
runas: DBotWeakRole
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10404775
tests:
- Base64Decode - Test