Is the secure string invalid in Terminal Session?

Hi everyone,

Currently I’m looking for some activities to mask my passwords when logging something.

I’m using the “ Send Keys Secure” activity in the Credential package for masked passwords. It works on websites and some places. But when I use it in Terminal Session to connect our company’s backend system, my passwords still show on screen.

Is it normal that Credential Activities is invalid in Terminal Session or is there some setting I can change to mask my password with Credential activities in Terminal Session?

Thanks.

Hi @Philip_Wu , I hope you are doing well.
Have you tried this:
1)Is with the NetworkCredential type:

(new System.Net.NetworkCredential(“”, “myString”)).SecurePassword
image

2)And to convert from SecureString to String, you can use:

(new System.Net.NetworkCredential(“”, mySecureString,)).Password

Thanks & Regards,
Shubham Dutta

1 Like

Hi @Philip_Wu ,
if you got your solution please mark the answer as solution and close the thread.

Thanks & Regards,
Shubham Dutta

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.