Encrypt password in script file.

Advertisement

mart
Guest

Encrypt password in script file.

Hello,

I will like make automation with winscp scripting but i'dont like show password in the script.

What is the best way to encrypt password directly in the scrypt...?

open scp://mart:PASSWORD ENCRYPTED@server -hostkey="ssh-rsa 2048 ..."

Regard,

mart

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
32,977
Location:
Prague, Czechia

Re: Encrypt password in script file.

Teh best way is to encrypt the script using Windows file-level encryption.

Reply with quote

dbkcis
Guest

Re: Encrypt password in script file.

Is it possible to hide the script within, and access it directly from, an SSIS package?

Thanks,
David

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
32,977
Location:
Prague, Czechia

Re: Encryption

scrablevision2 wrote:

Does your software have encryption included?
Can you explain us, what you mean specifically?

Reply with quote

Buffavento
Guest

Encrypt the script file

is there any chance to encrypt script file (I don't want to share password of FTP server to t others)? If someone access the script file they can see all details about remote server so we don't want it. WINSCP should process self encrypted script file.

ScriptFile.scp
--------------
option batch continue
option confirm off
open ftp://adminuser:xyzpassword@10.10.10.10
option transfer binary
lcd "C:\temp"
cd /buffavento
put *
close
exit

We want like this type of script file solution (if some one access it noting to steal in file)
EncryptedScriptFile.escp
Ency32487239723948!
fsdjlfkj2394892348n932489238239847
234u23948uefkjdfhksdjfh32hr87hr87hr
32894u32984uwekfjwekfhkjfhwkejf3287498327498987987987@@£@!£!@£!@£!@£
23jkne213871236871263871263
dsfnsdfjbmsdfb!@£!@£!
sdfjhskjdfh213123123@£@£
dsfjjk
dsfjkhksjdfh

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
32,977
Location:
Prague, Czechia

Re: Encrypt the script file

Buffavento wrote:

is there any chance to encrypt script file (I don't want to share password of FTP server to t others)? If someone access the script file they can see all details about remote server so we don't want it. WINSCP should process self encrypted script file.
That's technically impossible. How can you encrypt something in a way that only WinSCP can decrypt it?

See https://winscp.net/eng/docs/guide_protecting_credentials_for_automation

Reply with quote

Advertisement

You can post new topics in this forum