How to convert Secure String to String

How to convert .SecureString to String ?

3 Likes

@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.

3 Likes

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