Converting SecureString to String, for use in the body of an http request

Hello,

I am working with a credential type asset, capturing the password into a variable which is of type System.Security.SecureString.

Down the line, I need to use these credentials in the body of an http request and the endpoint does not like this SecureString datatype.

How would I be able to convert this SecureString into a regular string, within a VB project?

I’ve found multiple resources regarding this, however they all point to use a .net class, which is not compatible with my project.

Thanks!

hi, @Ionut-Gabriel_Petre How to convert a String to Security String Using Visual Basic - #3 by Silviu try this

2 Likes

Managed to make it work.

Thanks!

1 Like

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