Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..
115 views

How to use sensitive value inside scriptlet?

Hello,

Is there a way to use Encrypted variable inside a scriptlet?

Indeed, I've an input marked as sensitive that contains a shell command.

I need to split this sensitive command into a shell exec array, and then insert this array into a json : i.e :

input variable : bash -c "echo hello" 

expected result: {"Exisiting_json":...,"cmd":["bash","-c","echo hello"]}

Actual result : {"Exisiting_json":...,"cmd":["{ENCRYPTED}+...."]}

(obviously, i will mark the expected result as sensitive too)

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.