diff --git a/_data/navigation.js b/_data/navigation.js index a76018eea76..11ef296a849 100644 --- a/_data/navigation.js +++ b/_data/navigation.js @@ -595,10 +595,18 @@ module.exports = { title: 'Hex Decode', url: '/docs/jobs/task-types/hexdecode/', }, + { + title: 'Hex Encode', + url: '/docs/jobs/task-types/hexencode/', + }, { title: 'Base64 Decode', url: '/docs/jobs/task-types/base64decode/', }, + { + title: 'Base64 Encode', + url: '/docs/jobs/task-types/base64encode/', + }, { title: 'Uppercase', url: '/docs/jobs/task-types/uppercase/', diff --git a/docs/Oracle Jobs/Task Types/task_base64encode.md b/docs/Oracle Jobs/Task Types/task_base64encode.md new file mode 100644 index 00000000000..57da8899391 --- /dev/null +++ b/docs/Oracle Jobs/Task Types/task_base64encode.md @@ -0,0 +1,25 @@ +--- +layout: nodes.liquid +section: nodeOperator +date: Last Modified +title: "Base64 Encode Task" +permalink: "docs/jobs/task-types/base64encode/" +--- + +Encodes bytes/string into a Base64 string. + +**Parameters** + +- `input`: Byte array or string to be encoded. + +**Outputs** + +String with Base64 encoding of input. + +**Example** + +```jpv2 +my_base64encode_task [type="base64encode" input="Hello, playground"] +``` + +Given the input string "Hello, playground", the task will return "SGVsbG8sIHBsYXlncm91bmQ=". diff --git a/docs/Oracle Jobs/Task Types/task_hexencode.md b/docs/Oracle Jobs/Task Types/task_hexencode.md new file mode 100644 index 00000000000..afabe2ed7b8 --- /dev/null +++ b/docs/Oracle Jobs/Task Types/task_hexencode.md @@ -0,0 +1,25 @@ +--- +layout: nodes.liquid +section: nodeOperator +date: Last Modified +title: "Hex Encode Task" +permalink: "docs/jobs/task-types/hexencode/" +--- + +Encodes bytes/string/integer into a hexadecimal string. + +**Parameters** + +- `input`: Byte array, string or integer to be encoded. + +**Outputs** + +Hexadecimal string prefixed with "0x" (or empty string if input was empty). + +**Example** + +```jpv2 +my_hexencode_task [type="hexencode" input="xyz"] +``` + +Given the input string "xyz", the task will return "0x78797a", which are the ascii values of characters in the string.