How to Convert SecureString to string

Hi,

How to convert secure string to string?

I have Password which contains secure string variable and i need to write the password in messagebox

How to convert string to int variable

Regards
Sai

Hi @Sai.Srinivas

You can use the following expression.

String plainStr = new System.Net.NetworkCredential(string.Empty, secureStr).Password

Best Regards.

1 Like

Hi,

How to convert string to secure string

Regards
Sai

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

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

Regards,
Arivu

1 Like

Checkout this @Sai.Srinivas

Regards
Sudharsan

Hi @Sai.Srinivas

How about this expression?

(new System.Net.NetworkCredential("","YourString")).SecurePassword

Regards
Gokul

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