Encryption of the password for CLI use
Hi,
I am currently using the CLI function to push files to a server with the following script:
Unfortunately, the logins are in plain text.
Is there a way to write the password in encrypted form, for example in the registry or in a text file, and to decrypt the entry when the script is executed and use it at the appropriate place in the script?
I have already read the article on "Using WinSCP scripting". However, the login details are still in plain text in the file.
How can I hide the plain text / encrypt the plain text?
I am currently using the CLI function to push files to a server with the following script:
@echo off set server=server-ip set user=user set pass=password "C:\Program Files (x86)\WinSCP\WinSCP.com" /command "open sftp://%user%:%pass%@%server%/" "put -neweronly D:\VeeamBackup\Job\* /mnt/backup_user_001/" "exit"
Is there a way to write the password in encrypted form, for example in the registry or in a text file, and to decrypt the entry when the script is executed and use it at the appropriate place in the script?
I have already read the article on "Using WinSCP scripting". However, the login details are still in plain text in the file.
How can I hide the plain text / encrypt the plain text?