Converting to string

Good Day,
I’m newbie :slight_smile:
I need to convert securestring to string and I don’t know how.
Anyone can help me?
Help!

Hi @Magda2
You can achieve it this way:
new System.Net.NetworkCredential(string.Empty, secureStrvariable).Password

Cheers.

1 Like

Hi @Magda2

You can achieve using below syntax:

Password= New System.Net.NetworkCredential(String.Empty, securePassword).Password

Password is of DataType System.String. securePassword is of DataType System.Security.SecureString

Regards

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