Move/renaming files on SFTP server

I’m designing a pipeline to get a data file from an sftp server, use the data, and then rename the file to a filename with date and time and move it to an archive subfolder.

I am attempting to use the pipeline from the showcase at:

Is there a better way to do it now?

In the sample pipeline from the showcase it includes the username and password as variables rather than snaplogics authentications as used by the File Writer snap.

Is there a way I can get this pipeline to use snapalogic authentication?

If not, I see that the password is encrypted (obfuscated)… What is the best way to securely pass the password into the script?