How To Convert String To A Secure String?

How to convert string to a secure string?

Refer to the below steps/expression in order to convert a string to a secure string,

  1. Create some variable
  2. To convert from SecureString to String, use:
  • (new System.Net.NetworkCredential(“”, mySecureString,)).Password

Note: SecureString is obfuscated and not encrypted.

Refer to UiPath Forum Post - How To Convert A String To Security String Using Visual Basic .