Microsoft writes on its SecureString Documentation[1]:
On the Windows operating system, the contents of a SecureString instance's internal character array are encrypted.
On the other hand in Microsoft github repo[2] is written:
The contents of the array is unencrypted except on .NET Framework
So I'm wondering which statement is correct. Is SecureString encrypted based on the Operating System Windows (.NET Framework and .NET Core) or is it only encrypted in .NET Framework. How is SecureString encryption handled for .NET 5?
[1] https://docs.microsoft.com/en-us/dotnet/api/system.security.securestring?view=netcore-3.0
[2] https://github.com/dotnet/platform-compat/blob/master/docs/DE0001.md