Answer the question
In order to leave comments, you need to log in
How to work with SecureString?
What is the purpose of this class? You can still convert a string to it, but it doesn’t work back at all ... Well, that is. I saw on the Internet all sorts of ways through Marshal, but is it really so conceived? Maybe (as I understand it) it doesn’t even need to be translated into a regular string, but then how can I add it at least to the database? And how then to compare 2 such lines? It seems that there is no overloaded comparison there either ... What's the use of it?
Answer the question
In order to leave comments, you need to log in
Видимо, смысл в том, чтобы не использовать String вообще, т.к. он может быть скопирован (любое манипулирование с ним) и непонятно, когда удалиться из памяти. Когда это нужно? Тогда, когда нет доверия к другим процессам, коду в одном окружении. Например, запуск процесса под админом; доступ в сеть. А работать с ним через указатели только. Так возможно и сравнить и в БД добавить. (См. статьи в инете как.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question