How do I use SecureString securely?
问题 All of the examples I have seen end up converting a SecureString back to a standard string before using it, defeating the object. What's a good way of using a secure string without this problem? I know I can marshall the SecureString to a BSTR but what can I do with this BSTR? Can I get the characters back one at a time? If so, how? 回答1: This link includes a lot of helpful information, including how to get an unmanaged memory block for passing the string to native code (that is presumably