Base64 Decode
Function: Base64 Decode
This function allows you to convert a piece of text that has been encoded using the Base64 method back into its original, readable form. This is often used for safely transmitting data over the internet or storing it in a way that avoids character set issues.
Input
- Text (STRING, Required): The Base64 encoded text you want to convert back to its original, readable format.
Output
- Result (STRING, Default: RESULT): This is the name of the variable where the decoded text will be stored. You can choose a custom name for this variable, or use the default name
RESULT. The variable will then contain the original, decoded text.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Base64 Decode" function in your applications:
Example 1: Decoding a Simple Message
Imagine you received an encoded message and need to read its content.
- Inputs:
- Text:
SGVsbG8gV29ybGQh - Result Variable Name:
DecodedMessage
- Text:
- Result: A new variable named
DecodedMessagewill be created, holding the textHello World!.
Example 2: Retrieving Sensitive Information from a Configuration
Sometimes, sensitive data like API keys or credentials are stored in a Base64 encoded format for basic obfuscation. You can decode them to use in your application logic.
- Inputs:
- Text:
dXNlcm5hbWU6cGFzc3dvcmQ= - Result Variable Name:
Credentials
- Text:
- Result: A new variable named
Credentialswill be created, holding the textusername:password.
Example 3: Processing Encoded Data from an External System
If you receive data from a webhook or an external API where certain parameters are Base64 encoded, you can decode them to extract the actual information.
- Inputs:
- Text:
c29tZURhdGE9MTIzJnBhcmFtPTIwMjQ= - Result Variable Name:
WebhookPayload
- Text:
- Result: A new variable named
WebhookPayloadwill be created, holding the textsomeData=123¶m=2024.