I’m working with a Credential asset where the password is stored in a variable of type System.Security.SecureString.
Later in the workflow, I need to include this password in the body of an HTTP request, but the target endpoint does not accept the SecureString data type.
How can I convert a SecureString to a regular String in a VB.NET project?
SecureString cannot be directly used in HTTP requests.Convert it using System.Net.NetworkCredential(“”, securePwd).Password and pass the resulting string to the request body.
Example plainPassword = New System.Net.NetworkCredential(String.Empty, securePassword).Password