I would like to protect credentials using encryption in a similar way to what is explained here:
... but for VBS.
Guidance would be very welcome.
<job> <reference object="WinSCP.Session" /> <script language="VBScript"> Dim key, cmd, Shell, executor, seckey key = "ABCABCABC....." cmd = "powershell.exe ConvertTo-SecureString "& key Set shell = CreateObject("WScript.Shell") Set executor = shell.Exec(cmd) executor.StdIn.Close seckey = executor.StdOut.ReadAll sessionOptions.SecurePassword = seckey ...
SecureStringis an object, while you get a string from PowerShell output.
You can post new topics in this forum