I've read about SecureString
class and read a lot of different opinions about it.
And at this point, I really not sure how to use it correctly in WPF apps.
The problem is at the login. I have:
public SecureString MyPassword
{
get => _myPassword;
set => Set(ref _myPassword, value);
}
Now scenario:
A User enters his password and sees -> *****
A user wants to see his password in plain text, so he presses 'show password' button.
BAM! user password is exposed in memory.
My question is: How to avoid Password exposure at this point? Is there a correct way to do "Show Password" functionality?