Help Centre › Functions & Formulas
This article describes the RPA Crypto functionality to encode text to Base64.
For a full list of available functions, please read CRYPTO functions.
Description
The Base64 encode function converts text into Base64 encoding. Base64 is commonly used to embed binary or special-character data in JSON, XML, or URLs.
Setting it up
To use the Base64 encode function, follow these instructions:
{{popups:rpas/add:action=crypto-base64-encode}}
Once on a process map:
- Navigate to the process where you would like to add the Base64 encode function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the CRYPTO Base64 encode option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Text | Yes | Text | - | The text to encode |
| Variable | No | Text | encoded | Variable name to store the encoded result |
Output variables
| Variable | Type | Description |
|---|---|---|
| {encoded} | String | The Base64-encoded text |
Errors
This action does not produce errors.
Tips
- Useful for embedding binary data in JSON or XML payloads
- Base64 is encoding, not encryption – it does not provide security