In the SecureString Class documentation, there is a Warning from the platform-compat team, that Securestring shouldn't be used. Direct Link to the Warning on Github I am aware of removing SecureString ...