Convert String to SecureString

前端 未结 13 1927
粉色の甜心
粉色の甜心 2020-12-12 15:43

How to convert String to SecureString?

13条回答
  •  星月不相逢
    2020-12-12 16:44

    I'm agree with Spence (+1), but if you're doing it for learning or testing pourposes, you can use a foreach in the string, appending each char to the securestring using the AppendChar method.

提交回复
热议问题