<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="7.0.1" />

StringMarshalling

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