How to convert Secure String to String

How to convert .SecureString to String ?

1 Like

@rpalearner007

You can do as below
STRINGVARIABLE = new System.Net.NetworkCredential(string.Empty, secureStr).Password

Mark as solution if this helps you

Thanks

2 Likes

@rpalearner007
Use a assign activity and please pass the following :
String plainStr = new System.Net.NetworkCredential(string.Empty, secureStr).Password

By doing so, secure string will be converted to string.

1 Like

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