<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0-preview.2.23128.3" />

StringMarshalling

Specifies how strings should be marshalled for generated p/invokes
namespace System.Runtime.InteropServices { internal enum StringMarshalling { Custom, Utf8, Utf16 } }