0

I want to use SecurityString for store some confidential data.

But I saw remarks

We don't recommend that you use the SecureString class for new development.

So I would like to know if there are alternatives to SecureString?

Alma
  • 21
  • 1
  • From the [GitHub page on Secure String](https://github.com/dotnet/platform-compat/blob/master/docs/DE0001.md): "Don't use SecureString for new code. When porting code to .NET Core, consider that the contents of the array are not encrypted in memory. The general approach of dealing with credentials is to avoid them and instead rely on other means to authenticate, such as certificates or Windows authentication." – Jamie Taylor Apr 30 '19 at 12:13

1 Answers1

4

Recommendation

Don't use SecureString for new code. When porting code to .NET Core, consider that the contents of the array are not encrypted in memory.

The general approach of dealing with credentials is to avoid them and instead rely on other means to authenticate, such as certificates or Windows authentication.

https://github.com/dotnet/platform-compat/blob/master/docs/DE0001.md

Pang
  • 9,073
  • 146
  • 84
  • 117
evilGenius
  • 947
  • 1
  • 6
  • 15