I want to be able to encrypt the value I am passing on the command line in a way that can be decrypted by tasks inside GoAnywhere Director.
Is there any way I can trigger the same Encrypt process that is used by GoAnywhere director?
GoAnywhere Director has an encryption tool that is accessible via the Tools Drop-Down menu. You can enter any value you want and it will generate an encrypted value for you based on GAD passcodes. You can always copy this encrypted value into your system and send it to the Project and utilize it as an encrypted value as long as you identify the Parameter as an encrypted value in your project.
Otherwise, there really is no way to generate an encrypted value "on the fly" from the iSeries RunProject command to pass the encrypted value.
One option might be to have a GoAnywhere Project encrypt values and place them into a Data Area then retrieve the value from the Data area before making the call.
Lead Solutions Consultant
Like when we use the SFTPGET sommand on the iseries, the job log in GoAnywhere shows the password in clear text:
3/15/13 2:30:18 PM INFO Overriding variable 'res_pwd' with value 'thepasswordstext'